From 862a07b789c8d42f350f76732c87c7255c3a16ce Mon Sep 17 00:00:00 2001 From: antoineatstariongroup Date: Wed, 14 Jan 2026 10:23:54 +0100 Subject: [PATCH] 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 a77247c4..13a3f9a5 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 2934759a..6669c5a9 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 2534bf92..1570e770 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 29abec71..09f4b28c 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 1d5b92aa..a109d21e 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 4f59725d..36de4a24 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 23e07377..d5fa2bb7 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 383661ad..7d28ee1d 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 534585b2..92833128 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 fb83c49b..6940054a 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 3d038b6e..b9a2abc2 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 645c9caf..2d26f987 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 2ef56593..14804ba3 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 71d262de..9c23ceb2 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 31550f59..7a19c373 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 1fa657f1..dd1df263 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 c0d27212..bafae0d1 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 f1920c67..7d0a0800 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 96c28402..6603632e 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 1176aca7..4fca12fd 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 5919b207..4bbf43d3 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 d3147dad..d9a7e722 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 74baeb1a..1d52d4d3 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 6b3e5aeb..0a98030f 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 0a7f128e..90329563 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 3d68bd38..6184f9ff 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 76107e07..bedd547b 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 07594a16..f2afad4e 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 ea795179..6c86eadf 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 abbf321c..eb072d32 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 21e59289..fe2792cc 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 9d16308c..d92a8148 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 433c85ec..3f881d40 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 9e28109f..e4b3415f 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 89c96ccd..eb6ba8ae 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 499d7997..75b68861 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 245455b6..cd31dbfc 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 2369b4ee..5db88b13 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 e30761a8..6246fae2 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 6ba40eea..9ecb44c5 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 0bb5f749..e8d5a9ec 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 adb01f7c..d7ff1ae5 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 a12b9bc4..aeb84941 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 7e195a1c..58e630bb 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 5fb28def..8066841a 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 c0d913d3..e6d4e5c3 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 4075eb85..8bc176e6 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 00ae96f6..9288ceee 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 0dc21051..3c07b9a2 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 222dfc6f..520c7443 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 971a426a..64523e47 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 12ac3b39..f1c91718 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 c3ed2920..b4f157d6 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 4edc024e..e27b7096 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 8073399e..eea9fb43 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 fcc31f1d..2fe52c1c 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 be4660ab..163d17d5 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 bb67bd86..afc56508 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 1f4763f8..006059c1 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 87d8a66d..31cd19d1 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 79150ccb..4129388e 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 1c7fd2e9..cc029982 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 cb201d75..80a56b08 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 9e725183..e3e9b0ad 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 e6b8df17..92e9d897 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 10049504..7c99bafc 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 2d09a488..f9db6f50 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 ebf06830..20c55399 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 623335fe..1f2b35be 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 793cdb48..1dd9607b 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 ea83f1bc..7eeeaf1b 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 e9abf8ed..902458f5 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 afe21431..7fa7e28b 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 e1981b18..c51a7671 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 98daac12..9d6b471e 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 bbd740fb..b1d73052 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 15b928f2..6357e0d5 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 24a76083..1052b087 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 75fba217..5b69ea49 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 fa02183b..a9764b55 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 6f3f58d9..7eea6815 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 dd5762e0..841d4856 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 072b0637..61c54fea 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 7e95788b..f299d450 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 4318018d..34d194ec 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 0e4b9fa5..a2676641 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 8aafc969..710fee41 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 eb77b1cb..cf45508a 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 e1843905..ccb87dd6 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 1e35fc8e..d075a275 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 318f2ab1..300dc499 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 063e4b5c..413f6221 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 f2e45b8e..c91aa4d6 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 342db4f4..7c994785 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 9c43de48..6209a62f 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 756d2c70..f5075336 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 4819d123..4d443c2f 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 4cf8dc1d..0d2e618b 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 ab8b7b38..348f2753 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 7c439839..dcc15c59 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 85210a2f..57fce9ec 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 355aa7e4..0a0427ab 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 cbe185da..afd21edc 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 7ba221b2..de2f586c 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 4436a354..0d664aa7 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 6a5da831..d7158143 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 4ac823a5..3ae50784 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 812795e0..84be29b5 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 a80c2909..f627523c 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 a5e1c77d..210ba1a2 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 0fbca245..0ffb507e 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 9c117469..5db63a98 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 90716cf6..e6f43823 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 0de395dc..5523c1e7 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 6c0dfd39..86986a18 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 6d93c504..c45ec131 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 598eb890..15ab862b 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 d49eb321..e36e89e2 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 bfc2a78e..4f109ead 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 9384d2b9..83b2a5e3 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 1af86769..38e3c850 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 da40bb9e..376f8e55 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 53aa889a..159ff1ce 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 9a937d17..f05cf524 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 f453cdb0..bce9d581 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 f5370e4a..55a60e84 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 1002b2a6..3b5f1918 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 225ce168..b20a39f4 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 54b21253..c8348026 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 e6e4f933..160f471c 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 2eb1d4ea..62a55c04 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 49cd388a..47adf6f1 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 6b24cb28..b8a2848a 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 b648e94f..c58bfc55 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 d6c2a8d6..3cacc360 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 93b95287..2741aa2a 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 da323916..50c43d6e 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 3e2b00d5..78a35389 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 d72bae84..9f883a3b 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 ae3ba82f..873080fc 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 46cf596e..781633af 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 5bc466e4..b0dc8628 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 21d58c44..15f281a9 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 0b7e667e..8982f9ec 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 745a1189..e1b553fb 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 27faf63a..33eb2f5b 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 8266ded4..2149a0bd 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 4341d288..14dea642 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 6ac00f19..9dffd308 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 117f6dbf..ace54bac 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 9f78c607..fc2630a1 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 96e455b6..fb3cacf0 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 948a4f57..c1a42249 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 ab032211..6a50baaf 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 dc87fe4c..987dc335 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 80aecba1..7f01feb1 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 d1cc1951..7804189e 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 e0717a04..41e4ed89 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 20deebaf..057588a2 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 e8283de9..026c328f 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 6fb40cfc..34fd09f6 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 f13e5d66..dcd02167 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 24e13cc6..ec1839e2 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 d90861b2..f9a78571 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 bf8b341f..2aca80a1 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 01a9658c..10821b97 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 268d8421..8d81e238 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 bb94e14a..7d79f648 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 9614ad7f..c26a749c 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 e05fdbd0..ce3ecb6a 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 b0065419..b671b297 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 4da1e74c..2f8060b9 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 641b09d7..d7b505c8 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 9173285e..f609ce22 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 022a80c6..eb0ea257 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 33b59a5f..03f2b0b8 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 de409399..e4212843 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 1be674ae..1e2093bf 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 7eb90461..9daca1de 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 19c1706c..34fc3a90 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 79877d5c..2c304184 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 eb2ac265..9a2071fc 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 1851b4b5..af247494 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 383661ad..7d28ee1d 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 45cebd1d..5bc71ebb 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 8ceb12aa..f3ba77d4 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 839a6771..78be2d4a 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 45914550..51a8995f 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 9502b4e2..f602ffd1 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 d69cb138..87b92642 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 9249700c..2a015b15 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 d64601b2..52ba8569 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 3db8b106..bf837900 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 f095414b..4c0786ff 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 b9d09e04..f108ff28 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 e5c2626c..cf8f045d 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 370b5843..569c14b8 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 b4980ef3..ba480234 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 777c1cc9..260495f8 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 afb8b4de..de39b65e 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 73f87b25..40224252 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 8a4beced..e32c2120 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 dcd25901..210c3af5 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 bea3b94a..93912ad0 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 9b7db454..ac06d9cc 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 dfe9bbfa..4bf1cd28 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 bc07b28c..eaa8e2b6 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 ec011712..4dd76ec8 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 19cbe9d3..ce5eeea5 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 a4190570..eee40a43 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 5ca1793b..003829e8 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 24d1ecb0..eb8a7d14 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 8412029e..2881c825 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 58c70cf3..1df54944 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 13a9efcd..ef68af3e 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 fb3c6830..ca2b4d31 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 ea6ba494..3a6f6948 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 47189eba..0c3fb90b 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 0b75f2ec..93811eed 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 29e85838..e94e3067 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 a710a314..0dadc054 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 4e2a1ad7..cbf032fd 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 258e2174..d2a342e5 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 4d4fc952..03c358eb 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 5ab05009..f4363f9e 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 c06db0d4..021d4bcd 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 7fa51501..1ba2aea1 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 823f39fc..d17de40d 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 470476d0..407e8a16 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 987d8e7c..c56d9d3e 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 924cadf1..baf674d1 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 7facf4b2..ca25990b 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 fecf3417..7f2ce3d0 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 3be0c483..b3700bab 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 dc757816..e9b6ac6c 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 bc6d0fb4..2b976b72 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 e8c7edcd..48b53fc7 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 b009bc75..5014577f 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 feef78d6..1ce2d822 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 b8342267..03773a2b 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 7f3a8c48..e46ab1e6 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 87e8827a..1c177095 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 0e215e82..38d1ca30 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 d5131762..4a03cd4f 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 9f289c80..ab78a79b 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 5cfc6e90..b65ae7f3 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 398b8b82..63bc6365 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 f83fba63..c14e6a73 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 8a715d76..359dbd85 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 c6373f35..89706c57 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 83f01a46..fa8b3468 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 9ae82cc2..eeac4bca 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 383d4110..8aa22179 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 4b1b3968..e03647c3 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 3fdff026..67a6ce0a 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 3e1efbb4..9e152946 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 ae5253d0..b579ed0f 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 d4d6e5be..eda93d91 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 0db0e651..a33757d0 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 dbd7a22d..787c6f8a 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 2d090456..9a11a12d 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 f0ba4f1c..d3b6c859 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 6887aea8..28a41746 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 d1a97e9f..7fc7dda6 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 197c64d8..53ad5600 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 0b11c5a7..ba0e122e 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 83e0f1ac..2d157640 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 bc347186..15172562 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 b67666a8..f01fbf7f 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 a8073c25..c2e0f2eb 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 240024d1..f497f356 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 33454d3a..b86ba495 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 bae3148c..fef85e24 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 d676b027..0b2af049 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 48d1d215..4f244b7e 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 1fbcddf6..dbabcc14 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 0ce2e538..0704bcbc 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 9321c52d..700ca6d4 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 4618a628..1d3665e6 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 bfce9e40..171df3be 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 8f9838e7..1bed35eb 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 697eb3bf..ea87d72d 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 88e63625..355d1c09 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 ccbf9fd4..e943f7ed 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 f1c4aab1..1a2c9957 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 4fb10989..03291984 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 8273c999..edbd8f2f 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 df12a923..a0752a0f 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 09590ae9..a8749e83 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 40e463a0..8e56c9e4 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 9e4d6b6a..0e6897c9 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 7d057ef8..f25a12ed 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 9c5de3c6..2d3ab961 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 97622c41..37021417 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 4fd85ec0..f742dd3f 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 719458bd..012b2702 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 51ae6800..cfc177a9 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 c289a9b2..87e741a6 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 566651ab..ced1492c 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 9941af5c..934f374a 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 df987d6e..e44811c1 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 e2486850..e8567da8 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 c05f6c31..d2c06468 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 f639d2bc..96b58296 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 445cae99..e58666eb 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 35788744..5e253705 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 c32c57e4..03d73ea5 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 39bee555..12e369a9 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 a46872ed..5ca4fbc1 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 e2a56f39..d02ff2e1 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 0faaf3dd..4990f287 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 e6ef832e..765d122c 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 24e7186e..218241bf 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 9d7d370a..6bf675a1 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 4e75624e..9c70e056 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 d9107474..8b053f9d 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 7d383429..7d9eb8a3 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 a57a1ae0..d1fbe9be 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 69b6e758..9d0308bb 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 e2077b10..0c4c135f 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 bb8082dd..42c98f24 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 fd6333be..45b9881b 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 82fce5ad..50abf1f1 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 29a1adfc..8b5bfd56 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 10376846..734cfa69 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 8061582d..adc7cc8d 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 8fc2b076..2eb7f9b6 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 1f3541ba..a1bb15fa 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 18935c1f..0d4fbd95 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 fca4988d..991935cc 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 4faeca96..30f0a8ef 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 85ba4cd9..1a08b3d3 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 3fe54159..7817b067 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 625035a2..b5430030 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 2b0b2828..7f80fd83 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 3a32dea9..8c0f4738 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 44a1228d..a202f425 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 079b5f18..3aacc384 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 c3f73c69..1092b629 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 415067b6..4a4eac4b 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 5bee88cb..a45d265f 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 4a111c8f..e01b64ff 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 5b9a71e2..6969680c 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 132f88d2..9f6ac232 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 3a67feec..52287485 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 ac7faedd..220065d6 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 d29fd0cd..983a1fd2 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 7e95170d..ab632ec8 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 3c964b7d..873c27be 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 1c3d991f..a04266da 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 77c40a85..10afd769 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 f94919b7..420bc672 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 ab8b7b38..348f2753 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 e1884245..5fc2e8b7 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 a404dcc3..8f81fd3c 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 e7415025..1edb675d 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 2bdfbf53..fdf04e9f 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 88fe8636..efcb94e0 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 ea9cecf0..16693470 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 ed80eeec..4452ea20 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 8821fe2d..1826106b 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 5836bea7..9f5316bb 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 1793fe0b..f7b68da9 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 6e805b91..7f4c43b4 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 cbe56e2f..8b6ed17f 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 3955f994..4ec041e1 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 e8221e52..e6881d8d 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 63230bd8..ada3c28d 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 9bc48f11..bb530128 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 bc2e068d..6cb90c1c 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 9fafc66c..94f29a93 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 e031a97a..9c7b6edc 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 4ac1fb5a..29ae6e75 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 034dfad3..fef42a5f 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 3bd41a86..8d33deb7 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 a8c9bce4..cb68b6d8 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 29275899..5bb72543 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 047b86c7..513455c3 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 8e4cb0d7..f40156e2 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 a8b2f4ee..c5c24186 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 d9d071a0..a2917311 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 a2ba3dcd..31ffd532 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 ada02881..5d7952c1 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 25548ccd..4d08d325 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 075e39c7..118036c0 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 dcf7a7e9..1a10098f 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 361417e9..c33c30e2 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 3b70b8c2..09b1ef80 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 f7adf924..81ff12ce 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 e801a02c..416a1104 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 50e325c9..f740c6aa 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 daf9c892..e1506118 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 647e1b68..2286bca8 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 98a33e1b..09f190c4 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 d02cd202..5c374b43 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 e4abe5b4..ffb80ee7 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 8ab9ac42..826c6e20 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 da5e258b..d46c205a 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 25f8328e..efc6b050 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 bf760310..10595bb8 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 404ab995..433e6293 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 560cd043..57d992e7 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 aa1156de..820b123d 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 81e18386..0c50afab 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 efd65327..0939b92b 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 801063f4..76a3e336 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 9a9ea802..168b210b 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 3b359ee4..f72a3336 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 e2a44dd2..9472218f 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 d8fead29..215b1142 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 0f57a263..e4200379 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 c67b4409..058a23b3 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 579fd189..1436df69 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 b72893e5..7757bd62 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 fc4226b4..d540eaab 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 98f3e136..e68ed91d 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 af841474..e6ec5ea9 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 2564d54f..5d7a2f91 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 f64655a0..c3a1e7e0 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 65796492..7628ed59 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 18d79a7c..37fa218f 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 3f9b0991..fa8b0224 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 6bdfaea4..70a5df00 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 4f471ef1..2d756998 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 8566fb98..37c97add 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 3f1d7074..d22eb983 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 661f43a4..68a9e645 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 4e1b2ced..a26af894 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 ae0babb2..1f94a0a2 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 fd214eec..f7d0327f 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 f0152eed..99dacad0 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 250a92ce..9f19296f 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 b46df4bc..e9b6ebb5 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 2c760a37..87b1f338 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 6c11605e..c8a5a2c1 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 cff4b29f..bcabcd1d 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 d916bd3d..40bfa6ea 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 e6de8186..b91f8728 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 6895abfb..ab97c610 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 4e8483f1..b6f4d8bf 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 ebe91432..18a8ee81 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 93acd175..ce6e1ed2 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 467b7866..b889470f 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 8bb57fca..fe29b36e 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 b964ae7b..8fc211db 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 48b04f4d..19ee6a0b 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 55440195..8849f113 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 09a47d32..abc69a91 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 313dba9a..d82e55a7 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 46c05e98..566e060f 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 095af5fa..1af59206 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 1ecd40e7..a3d446a4 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 79eb6c19..a561a7bb 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 7a1f987b..d5d617e0 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 26400514..f2b23fb3 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 b147ddb6..2978bff4 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 ec28ec62..3163f846 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 99be2939..ab2d312e 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 bba34ad5..4a338379 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 154f6ccd..a02e45ab 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 4e8fa708..f420313b 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 16c9ade4..0e61bd1d 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 a4ff42d8..413d9a29 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 6e0c5be5..f4dc8056 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 2c28fea5..331b1c49 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 a27c3e3e..24c54540 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 92c676fc..1912add7 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 f2a5ff86..c5c92f6c 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 016d6693..0e61a0cd 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 17b5ec38..a8dbec30 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 d7f7e2fb..d261026e 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 1a3ca23c..6e4e9a54 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 59033aaa..971a4783 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 33e7a0d9..51bbcb0f 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 46fe0f41..930d819e 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 dac01e94..609c6460 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 e87863c2..a3413584 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 2b0b421a..a273194c 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 ebd056f4..16d92521 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 bc23da7a..1f97d562 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 a25469a9..295f7a73 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 0ce7b1c8..82db7598 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 7bf5ee96..d8a63e56 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 f7131c2e..924c8452 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 39960599..38cc5622 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 aa94956f..ece4682d 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 e41e3b30..4a6fb444 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 25f7b987..ead008ce 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 0c71d1de..7bfa1666 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 9eb43ccc..392bcd3c 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 4876d1de..45d2654d 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 f046e655..37ca36a8 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 b52a21fe..b7ef2b43 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 5c5212e3..b46f0d1c 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 aa13779d..aa602bb6 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 00a8e7b4..b49c7a79 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 e2dc75b5..299490ee 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 08fdcd67..49148cdd 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 b009dd42..82c7b644 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 4b074465..b3050938 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 c6e676f7..4d40fc85 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 fc63e180..e9ef3a7d 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 8b255294..12a15b12 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 b27d77c7..b06ca0a4 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 3a737e7d..f715c665 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 6028e691..e82345b8 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 5a9d8dc5..c92bf291 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 a4c848da..66e974e1 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 04b795c6..0db729ab 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 0207ad9c..1af90a92 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 4c19a8a2..012527f5 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 39c6bc05..c003f4b8 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 50d3c0e7..85a5e65e 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 06f18b97..9c28351b 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 ac422a76..c702c31c 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 0fa5dcaf..0c82e238 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 127759b2..dc71f6c2 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 1d72e44f..155b5d41 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 036714d1..3bd744fe 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 b8bd1625..ab104c94 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 d32b427c..4ed94ea3 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 884f38a5..3a255eff 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 64fd2b6d..3d79d2f1 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 4f7e8732..938b118b 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 bc1dbb1b..4984d6d9 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 a86fdaac..4b65ddec 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 a413b633..26094d23 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 76107e07..bedd547b 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 ae27622f..f480de24 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 8f74115d..3228e2be 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 8b842fa5..8e4dfb40 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 2d313589..3ee6d9e7 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 2f913ba0..78a958f2 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 ff8bee22..c9e319f7 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 c56fd230..20366c9b 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 1fed9535..e4af28e0 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 9a5ba0a8..c952d0c4 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 1cb6bbff..12832ae6 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 ae88defe..286201de 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 b13692ca..725bb9ed 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 65031e5c..80dec83b 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 6bd408fb..f5403218 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 5460a15b..bb1c876a 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 9a6428d4..45c774bc 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 f48e2149..2c88fe55 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 5f93f40e..4f63d89a 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 f082af38..c84ec0b0 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 5208d484..c47ea65a 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 436525d5..06bd3e43 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 2af8ad15..c4c38302 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 a7a95396..ae13dc03 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 7ec9016d..b42acafd 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 48a03c15..9855bbdc 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 d321a719..17e7a8f2 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 042038aa..09192687 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 457f6fbe..d5bacbac 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 d10ce068..a38adab6 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 1756c000..5be7d863 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 8b54f03e..beae34a7 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 e261ca85..38a8a4d6 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 9393517b..c9e9917e 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 3f3c0375..99c42502 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 e5f1ec52..ceceb9c0 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 8af767ef..b4ca36b6 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 04bdd7e9..39e0d95e 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 b1df73c2..0bdbe998 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 92933efc..cd4d2d45 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 d0e98350..b9d6c56d 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 a6967cb8..c14956d5 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 3da55a74..6097afa3 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 ffaf6422..6cd791a0 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 686d61b9..2e580f51 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 45d27e38..fbf44cd9 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 e398af24..6c07b17b 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 d2975fea..500d2a9e 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 6fc15113..e1dc54d8 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 54f4f4da..d4398ad7 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 3008322b..fb38eb73 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 2c91d503..d7f68e44 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 cb4cae20..04d11883 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 5203d572..52e755a0 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 d9c8ddf1..3f0452f8 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 04c25ecd..05289ce5 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 366f66fc..433785d7 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 7f0522e8..3b6a5b58 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 89c96ccd..eb6ba8ae 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 60be023e..832b2fa7 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 112b1b46..c46c94d0 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 8c73bf65..64a8863e 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 23ddbb44..483609c2 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 46dd65bb..35b056b8 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 4bfac690..fa466a04 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 5441b7f7..a0ba55c7 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 9d5bada9..ae5fc38b 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 97c0299b..98e4f915 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 aa03317e..561ded24 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 97db5b0c..410d6831 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 e232c95f..5ef02a14 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 1a1644a5..99b86b7a 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 aae5b885..d8cc4d6e 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 76d14947..f2170c7e 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 09cc2c62..9388842c 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 d34d10ba..4b6a741e 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 5b7d06dc..3034c311 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 35b81d6e..bfa111e4 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 5e74a3c6..8087b19b 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 171c6652..1bdffe98 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 e3eab18e..55a5b3ca 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 63a1780f..49dc50df 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 7cf87a92..30958823 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 f269b52d..10f6d4f1 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 acf25acb..9c1e6b02 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 a4cbd660..8388b271 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 a1d98fdd..0d16139b 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 c2be5de2..bb471b01 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 4501fc20..ed21dd41 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 edad6052..fb2afb7e 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 f314bf03..fb6cb07d 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 268fd5d4..959536c2 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 e3637e49..fb6c8e8c 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 09c7a124..319ea1bd 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 1b5b2205..874f6ae5 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 ab576a6b..f890959b 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 98ac824d..941f0e3a 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 22b88aa5..44dec201 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 5068abd8..e4ebf64a 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 b537ffa2..ab901872 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 050bbd6c..c3b981ca 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 29c2ced7..1a34194e 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 66158a1c..40117676 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 aff4f78e..8f0155b7 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 9e198354..bf79829d 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 96a31f45..f13565d2 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 d606ec14..c831a72b 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 92732628..fb271bad 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 3285497c..09e595ba 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 9132f2a6..115627ef 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 952ab1e0..61e268d9 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 fcf1af1c..45c04bb9 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 52c27a9f..5c966d0f 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 6bffd94d..33076623 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 dd965acf..0c10f9f3 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 9beb5f63..eb4e1eed 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 1fb22fb4..656379d9 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 b7023983..6875c18c 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 e869f3c9..0e299201 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 2ea60f95..46843133 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 5ffcfa96..cc865178 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 54c234af..995dcbba 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 89144e14..471ceed2 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 9ed6cdc2..1e649016 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 b7d2f467..48ea49bc 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 9b3508d5..4d94e5ab 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 58da437c..cf7dab3a 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 40ff21f4..ac6f930f 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 3c7726ca..ff2349fa 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 21f61252..c4370f07 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 cadf862b..647646aa 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 392ba75c..aa5de4ff 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 64d20ba5..4584491e 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 156f6076..cc5f8418 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 45f16b12..f0bbbdf9 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 89d2f8fb..0d06edaf 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 08651cb9..bcc45384 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 67ac5ef2..8c48a74b 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 b5af0a70..6a30e0df 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 87cdeb5f..d3c49906 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 ab358e7a..6d2553f8 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 8ddf7b87..2dff89d7 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 4c822417..460d2ff4 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 a8114bf0..95dd119c 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 fa2449e2..10d62150 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 7a8908d6..74af44a3 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 f3e0347f..1423b7b9 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 d2b683eb..34135dec 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 44fd96ae..862883ed 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 25525b78..1109c11e 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 0fd8942a..d21d2ac8 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 438daad4..4e5f0ebe 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 848fc4f9..39d7d34a 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 8480038c..24de6c8b 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 784cb075..ea1ce24e 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 4ad5d9cc..6b8cf5fd 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 29cd4a4f..364a01c3 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 973c05ae..eab42914 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 e5a94b3c..77cf50c2 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 d50bcb0a..17bcec69 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 7c28aea1..7ed16106 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 da48e233..967bbaab 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 913f5bd9..6fdae7d1 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 4027a02a..ef2a1d05 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 745b78df..2398d417 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 19c078ff..ecda5e10 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 edfd4f99..6dfb6283 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 f740fd1a..bf5ffa86 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 5e96145d..170d3fbf 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 3121a1e0..bd81f094 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 986778e9..ec6e6c86 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 ce4f44c8..7c6c6731 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 1f28f2b9..c61a3a62 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 2bdc631a..1d011e26 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 819c4d5b..e07a89c5 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 661489de..a850b228 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 8367e542..b97c0114 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 f99e53f7..7edcc383 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 6160ca54..bd2585bf 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 3cbca780..52cc785d 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 0aaa48a2..d61dba8c 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 20ad34cc..3ac9d433 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 03fcf8ee..6764079b 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 e95c6dde..2ba31e6b 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 d662057e..11d83e46 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 76d48040..716324f8 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 61d718ba..422ad9f9 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 1c2a9c26..b1b24220 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 8360aeae..495f2c3e 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 d35870cb..5a4a33e7 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 beaccb5d..8f2e4d40 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 4ea97ddb..9803653c 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 bd7f052a..bbd1a390 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 a9fe51ca..05a4c074 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 cae54bae..5c229d1a 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 8a35e2c0..051331e1 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 e78fcf75..dbead799 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 4abb8f3e..bfb3e832 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 c224c76b..a9d397e1 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 7af64d61..13f80a54 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 23018c56..680097b6 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 de6d005e..ceb3a374 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 b69c6967..e7ac4cf0 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 7c0535c7..4f1273cc 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 ccf0bc46..1fc4600e 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 e3fd18a6..d068cbc3 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 908e9dee..eb23b0ab 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 fabac8d2..a1228ab5 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 c7404dbf..cf67182e 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 2528982f..ab400e0b 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 d0cdb2ee..446161b6 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 32a7951e..23d83e23 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 ef64f32a..2d1cd249 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 0969efcc..6a376cb0 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 e1662307..3667c740 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 6d1f330e..7f868a39 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 e7365200..32bb7a17 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 74a85935..38e3a90c 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 fd95c889..118f9ea1 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 4893f76c..1db7341a 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 75c7e46e..dbe4a6cb 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 a9125d82..ef43726f 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 008f3ebe..fa69ab6a 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 d5f2d224..bfa47b30 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 f38198e1..45e801de 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 7a2d065e..759c7a28 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 5ce82659..dd43bedc 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 f32fdba7..933400d4 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 0c5ed44a..41ee4f99 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 a04586ed..b665aec4 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 68bc1ee8..9245adb1 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 f862e931..bf458dfe 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 8842b31b..2f0e61ac 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 65ecefe8..83e400ae 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 c3efce52..817b69ea 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 e00112e5..ee9f1322 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 4afd2477..c8803c87 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 38030d78..5e6b7409 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 25b8b61d..89a236cf 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 3379e3d2..21fb977d 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 24234405..237ab779 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 20803ee6..9c8a9408 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 eec33bea..504e1571 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 7a355272..e98f40f8 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 0585d558..4314adb1 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 151aae4b..24bf8514 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 bb9364dd..fbad648d 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 3e948e00..07c55066 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 694fac58..9e6286b5 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 f0da5123..302229b9 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 696490d0..8d2ca956 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 988f30ba..bec9e7cc 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 944c561e..75cd6abf 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 eca54c1b..c5e4722b 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 cd303fb7..178bd236 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 70e3d322..c98b8f78 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 aad35060..ab373190 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 5f95a981..84d925ae 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 2f6f524e..9453174b 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 af42ec03..4dfda296 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 9ead8203..1dc88a31 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 3b8847fd..56ef5b88 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 d7371883..8c543095 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 6d8aafa9..73646cb2 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 9929a857..21e08c98 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 3e0134e4..cd759f10 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 99756c7d..ac4bdfa0 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 8c56d0b0..8cd53bb2 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 fc19e0e7..60451784 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 c16dd0f1..c7086398 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 f1bbdf56..0c019193 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 94547805..62f20b6c 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 10db74b1..86de35d1 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 8a2c4e45..61aa173a 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 1c4ee55f..7d83ea57 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 3b87d105..bf3fb98f 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 2a495cdb..c5c7aacb 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 e8327a1a..c49910ff 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 d808e6f3..665b7841 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 7a0d2cf2..1019e256 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 b54279bc..a16a765f 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 0b1d7290..e0a09774 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 d191cd1b..d2c3169d 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 ee5b940e..cf07a2b8 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 b4be6d9f..21af5f79 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 2329dd11..79590d70 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 a3463fe7..51724df4 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 8ea3cdd5..c2a48b82 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 912a6588..2317d07f 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 05743418..e72319a8 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 7991faf7..5bbe1305 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 4dd96e8d..4d7ebbba 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 cb201d75..80a56b08 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 19504cae..8ad6df49 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 c9a863eb..f3446113 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 400bf792..3bd4543a 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 29f8e463..e8d90729 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 3e2931f9..87c92e29 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 bc5766a7..51144276 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 55121327..026ab6d0 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 db7a71f3..a27e1e97 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 38199d53..d5547590 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 b1539821..bc964e32 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 9c44e8fc..bb5f6e1d 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 df87b7ae..6772b89b 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 7522dcb6..6558baef 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 3c52f551..ffc3d671 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 e49f1290..c58027b3 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 676a0b8f..93b7df89 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 2c40f1d6..6cc10d33 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 f39b1f60..86cf6280 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 533d4814..6edf1136 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 5adb661f..380b61fa 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 245fad1d..fedf4a94 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 71f4f3c4..ac5aa232 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 4590b037..a4490e92 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 2fb90783..37045310 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 5c499d5b..98acbe7b 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 1f4c8730..56aa8890 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 55a92dc9..034044df 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 18432927..4845a190 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 fecc5473..f625d7d2 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 b0db19b0..495d4b6a 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 bfdb210a..81b0ebd2 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 c83ffd73..71dcf1b8 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 28d4eab4..620f374d 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 a0a0b2b3..9cb7ec33 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 3a0ecd1a..ce70d5e2 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 591c4007..661ac00b 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 eabe2f47..ec61188d 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 370dd4d7..ddb717bc 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 6bb26258..9494cdf9 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 3acc9d47..1de5a426 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 9309c055..4cddb835 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 60c6f7a7..f961d941 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 ada6912f..bf32e4f6 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 e463b8b8..5b0a3834 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 04d7f90c..418f0bb4 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 fc622925..3e31069c 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 9569a5a7..7e306afa 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 1e0715cb..044cd610 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 a14fdd30..77a7c7e6 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 4523e92b..e736fa63 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 be369d92..654686c0 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 0ef11cd6..4c64223c 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 9631195f..3739211c 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 4ee9b401..effbc9be 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 610bc5ab..9b601bec 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 7f0b0c26..5e51ce4b 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 c74eebd4..02e08445 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 ea83f1bc..7eeeaf1b 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 8c040b67..694372cc 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 e5e0f6ce..7262bf7b 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 1231caa6..49b09551 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 25d07a83..b7cdbd8d 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 455d74d9..ba58db06 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 e5f637ae..2947d01c 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 7a4d9dd2..ad7fb55e 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 58ca14d5..b48d2514 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 14335290..0b0fdc9c 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 1368bb60..489d1b9e 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 fa88db87..fb0230cd 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 34434d13..af088c86 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 a39d4316..49afad72 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 bfaa2eb8..3607212c 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 3bf8e58c..b6ad92e6 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 a56b86d4..397f08fa 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 43d97b36..61ac14e8 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 d964ac9d..9ac4e630 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 1a7c2016..de23b8da 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 b41c09b3..dd855bb2 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 7d38ae18..bfa5347b 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 67b59734..0ffda3c9 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 89b5279e..fb021341 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 e0b5d8b0..d87d681d 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 36e744e4..8f747260 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 f2528af3..ca0904a6 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 80a45ad2..a4ab1cd6 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 55f72ede..6a20e560 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 6baff059..aefec5e2 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 b3636417..481b570d 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 0830c2f3..4987db67 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 b890dff6..cfda3e24 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 ac6be62a..35316a4e 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 ab308ac8..8aec217f 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 9594d3bb..cdbe13a8 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 14c45116..198ac06b 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 bb38d983..98a6231e 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 40465963..9ae8835d 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 8332fa19..5e024a44 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 08c12b93..1d14b461 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 081d0369..058aac03 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 59720546..3d51c6ff 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 acd45ff9..308660ad 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 c02b05da..d1851328 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 e5a51ead..7116477e 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 85142e1a..e02f0f39 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 d0ac5dca..f30b1670 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 61119e8d..888a555b 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 3485c751..010c2672 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 21d98f4b..bac55bb6 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 c3317097..06971a7e 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 d5659bd9..d4a72a8f 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 d5d83c9a..216f19d6 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 f6c9ec69..e29816a3 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 5ccec36c..5d64bbd4 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 70f0029c..6c77afef 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 66f9f843..3b8b16dd 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 046d3e8b..ec0a43bc 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 d037170b..3ccdb091 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 e5028f87..94cb3537 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 f21c8b82..ed4a46b3 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 97c00cb5..b9a7778e 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 05d47954..b0114c34 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 1882816b..50eed750 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 ee942194..a9155463 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 9df5cfe3..7f30350a 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 9f38cc42..3d1fa9d3 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 05f0be3c..0db613c9 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 70ba82d2..4d2ad622 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 0d305ce8..48b4fdfc 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 133f2767..1a11fcdd 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 36809361..79b26826 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 bdf4c9df..8aaf3806 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 0a7eb999..435f0e09 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 dee48d62..9f6717e9 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 84ea3a97..1dc20022 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 591cd2d6..49c5bd5d 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 a2495d97..1e3f1115 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 32660aa1..16c8402e 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 d3e1ac48..af477cfc 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 a162b45c..58cc96b7 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 6c43e297..6ca5da22 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 3dd9e353..79cf109c 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 0832b8b8..21ddeff0 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 e774a2a0..3a04a016 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 dac7c03f..e9a82aa5 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 44a49d8c..f19ec840 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 d929af9d..816836f0 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 2650acd6..92d404fc 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 0aedd7ff..c4e449d4 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 9298af95..320f69f5 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 bbba0d5b..13fe09b8 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 94f1985b..f5456776 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 1478761b..848dcb06 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 4e59b3c9..939e18c9 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 29fdb05c..61334db5 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 bd8dbd2a..937506e0 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 2982b272..978f5943 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 340f1fc9..d9739be7 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 e1fbaa95..f53d7367 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 a06b95a5..cb6a641a 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 f9c17263..fade1383 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 ee1b4677..d55744e9 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 aa553493..840a3cf5 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 bd5b241b..aad84016 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 78979995..dec96013 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 2e5b112d..0113e27e 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 c6bfd477..4e2eae8a 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 44b06cb1..b2832aef 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 7e5b2c1a..1f9c23a3 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 a243af0b..7376bc2d 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 e25df82e..1e51bf9e 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 8c67ca4a..274e2875 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 6b8d84b9..bfbb633a 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 3222f138..8bef58f0 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 afb72e5c..b5a52ff2 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 8463c44b..1e3b0ca9 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 d6b0b349..26e70a6b 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 46dbff93..7ce588d6 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 5837c931..f36b0fc4 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 ff07b6ae..4969c18e 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 94b7db11..ab98f667 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 71c88f5f..a5e75e43 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 9335b661..135094dd 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 265b4a31..ebdcd877 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 e8359027..b47105fc 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 b7f8218b..9c94ba40 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 92f683c0..fbfa5a88 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 98fd9870..b03ff24d 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 afc446df..71aa92da 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 f5822479..8466a30c 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 1ee270c5..b0ecf888 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 4b99d579..e75e5ed3 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 f981829d..da688b26 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 93f4a431..30c9dee8 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 fdcf56bb..8dbf2bba 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 d0c7a3a1..db93f673 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 dfd419d7..a394e2e9 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 a88eef39..29381f18 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 8d9ba20b..feb1174b 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 c822dca5..51b062cb 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 218d35f2..a2d53e44 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 2dd6618b..3f6b6ee5 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 09693812..e4f5f854 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 7b0a07b1..6162c429 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 349cf336..270ae2ae 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 9c7d57ae..c03286ba 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 63297da5..1849eda6 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 11965d7e..15a121a0 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 d119f5f8..5cd40148 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 0691cb38..ed97a539 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 85c2e6da..2b4aa9f7 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 a82e9a4e..02996dd2 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 c1e8c22b..2c96638e 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 c085ef28..173c8d82 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 be489985..822eb289 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 2dc87450..f66406b3 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 89f55a7f..64cf6e85 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 eabff290..de05ccc5 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 8025430e..cc2aa686 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 657f0f16..b6334539 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 000b3c90..edf27e1e 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 032ee626..edbee72d 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 fd5e966a..6db65d61 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 9174fa1c..5c5b87b9 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 b68aa15f..c7cc3975 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 20b30d38..3bf18bce 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 9bb28227..341d47f3 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 ac695802..a42fe3be 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 e75831a5..55857515 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 514c03d8..81af9f40 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 3cd0523b..574d9e2a 100644 --- a/SysML2.NET/SysML2.NET.csproj +++ b/SysML2.NET/SysML2.NET.csproj @@ -38,4 +38,7 @@ + + + \ No newline at end of file