Skip to content

Commit a539ca8

Browse files
author
samatrhea
committed
[Refactor] SysML2.NET.Serializer.Json namespaces -> improvement
1 parent a49e680 commit a539ca8

File tree

358 files changed

+692
-692
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+692
-692
lines changed

SysML2.NET.CodeGenerator/Templates/core-json-dto-deserialization-provider-template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
2323
// ------------------------------------------------------------------------------------------------
2424

25-
namespace SysML2.NET.Core.DTO.Serializer.Json
25+
namespace SysML2.NET.Serializer.Json.Core.DTO
2626
{
2727
using System;
2828
using System.Collections.Generic;

SysML2.NET.CodeGenerator/Templates/core-json-dto-deserializer-template.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
2323
// ------------------------------------------------------------------------------------------------
2424

25-
namespace SysML2.NET.Core.DTO.Serializer.Json
25+
namespace SysML2.NET.Serializer.Json.Core.DTO
2626
{
2727
using System;
2828
using System.Text.Json;
@@ -70,7 +70,7 @@ namespace SysML2.NET.Core.DTO.Serializer.Json
7070
throw new InvalidOperationException($"The {{ this.Name }}DeSerializer can only be used to deserialize objects of type I{{ this.Name }}, a {@type.GetString()} was provided");
7171
}
7272

73-
var dtoInstance = new Core.DTO.{{ this.Name }}();
73+
var dtoInstance = new SysML2.NET.Core.DTO.{{ this.Name }}();
7474

7575
if (jsonElement.TryGetProperty("@id"u8, out JsonElement idProperty))
7676
{

SysML2.NET.CodeGenerator/Templates/core-json-dto-serialization-provider-template.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
2323
// ------------------------------------------------------------------------------------------------
2424

25-
namespace SysML2.NET.Core.DTO.Serializer.Json
25+
namespace SysML2.NET.Serializer.Json.Core.DTO
2626
{
2727
using System;
2828
using System.Collections.Generic;
@@ -38,7 +38,7 @@ namespace SysML2.NET.Core.DTO.Serializer.Json
3838
private static readonly Dictionary<System.Type, Action<object, Utf8JsonWriter, SerializationModeKind>> SerializerActionMap = new Dictionary<System.Type, Action<object, Utf8JsonWriter, SerializationModeKind>>
3939
{
4040
{{#each this as | eClass |}}
41-
{ typeof(Core.DTO.{{ eClass.Name }}), {{ eClass.Name }}Serializer.Serialize },
41+
{ typeof(SysML2.NET.Core.DTO.{{ eClass.Name }}), {{ eClass.Name }}Serializer.Serialize },
4242
{{/each}}
4343
};
4444

SysML2.NET.CodeGenerator/Templates/core-json-dto-serializer-template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
2323
// ------------------------------------------------------------------------------------------------
2424

25-
namespace SysML2.NET.Core.DTO.Serializer.Json
25+
namespace SysML2.NET.Serializer.Json.Core.DTO
2626
{
2727
using System;
2828
using System.Text.Json;

SysML2.NET.CodeGenerator/Templates/core-json-enum-deserializer-template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
2323
// ------------------------------------------------------------------------------------------------
2424

25-
namespace SysML2.NET.Core.DTO.Serializer.Json
25+
namespace SysML2.NET.Serializer.Json.Core.DTO
2626
{
2727
using System;
2828

SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AcceptActionUsageDeSerializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
2323
// ------------------------------------------------------------------------------------------------
2424

25-
namespace SysML2.NET.Core.DTO.Serializer.Json
25+
namespace SysML2.NET.Serializer.Json.Core.DTO
2626
{
2727
using System;
2828
using System.Text.Json;
@@ -70,7 +70,7 @@ internal static IAcceptActionUsage DeSerialize(JsonElement jsonElement, Serializ
7070
throw new InvalidOperationException($"The AcceptActionUsageDeSerializer can only be used to deserialize objects of type IAcceptActionUsage, a {@type.GetString()} was provided");
7171
}
7272

73-
var dtoInstance = new Core.DTO.AcceptActionUsage();
73+
var dtoInstance = new SysML2.NET.Core.DTO.AcceptActionUsage();
7474

7575
if (jsonElement.TryGetProperty("@id"u8, out JsonElement idProperty))
7676
{

SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionDefinitionDeSerializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
2323
// ------------------------------------------------------------------------------------------------
2424

25-
namespace SysML2.NET.Core.DTO.Serializer.Json
25+
namespace SysML2.NET.Serializer.Json.Core.DTO
2626
{
2727
using System;
2828
using System.Text.Json;
@@ -70,7 +70,7 @@ internal static IActionDefinition DeSerialize(JsonElement jsonElement, Serializa
7070
throw new InvalidOperationException($"The ActionDefinitionDeSerializer can only be used to deserialize objects of type IActionDefinition, a {@type.GetString()} was provided");
7171
}
7272

73-
var dtoInstance = new Core.DTO.ActionDefinition();
73+
var dtoInstance = new SysML2.NET.Core.DTO.ActionDefinition();
7474

7575
if (jsonElement.TryGetProperty("@id"u8, out JsonElement idProperty))
7676
{

SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActionUsageDeSerializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
2323
// ------------------------------------------------------------------------------------------------
2424

25-
namespace SysML2.NET.Core.DTO.Serializer.Json
25+
namespace SysML2.NET.Serializer.Json.Core.DTO
2626
{
2727
using System;
2828
using System.Text.Json;
@@ -70,7 +70,7 @@ internal static IActionUsage DeSerialize(JsonElement jsonElement, SerializationM
7070
throw new InvalidOperationException($"The ActionUsageDeSerializer can only be used to deserialize objects of type IActionUsage, a {@type.GetString()} was provided");
7171
}
7272

73-
var dtoInstance = new Core.DTO.ActionUsage();
73+
var dtoInstance = new SysML2.NET.Core.DTO.ActionUsage();
7474

7575
if (jsonElement.TryGetProperty("@id"u8, out JsonElement idProperty))
7676
{

SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/ActorMembershipDeSerializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
2323
// ------------------------------------------------------------------------------------------------
2424

25-
namespace SysML2.NET.Core.DTO.Serializer.Json
25+
namespace SysML2.NET.Serializer.Json.Core.DTO
2626
{
2727
using System;
2828
using System.Text.Json;
@@ -70,7 +70,7 @@ internal static IActorMembership DeSerialize(JsonElement jsonElement, Serializat
7070
throw new InvalidOperationException($"The ActorMembershipDeSerializer can only be used to deserialize objects of type IActorMembership, a {@type.GetString()} was provided");
7171
}
7272

73-
var dtoInstance = new Core.DTO.ActorMembership();
73+
var dtoInstance = new SysML2.NET.Core.DTO.ActorMembership();
7474

7575
if (jsonElement.TryGetProperty("@id"u8, out JsonElement idProperty))
7676
{

SysML2.NET.Serializer.Json/Core/AutoGenDeSerializer/AllocationDefinitionDeSerializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
2323
// ------------------------------------------------------------------------------------------------
2424

25-
namespace SysML2.NET.Core.DTO.Serializer.Json
25+
namespace SysML2.NET.Serializer.Json.Core.DTO
2626
{
2727
using System;
2828
using System.Text.Json;
@@ -70,7 +70,7 @@ internal static IAllocationDefinition DeSerialize(JsonElement jsonElement, Seria
7070
throw new InvalidOperationException($"The AllocationDefinitionDeSerializer can only be used to deserialize objects of type IAllocationDefinition, a {@type.GetString()} was provided");
7171
}
7272

73-
var dtoInstance = new Core.DTO.AllocationDefinition();
73+
var dtoInstance = new SysML2.NET.Core.DTO.AllocationDefinition();
7474

7575
if (jsonElement.TryGetProperty("@id"u8, out JsonElement idProperty))
7676
{

0 commit comments

Comments
 (0)