From d1e8b5dc2cfa93bf042773b4bf04a0f0bfc1f53d Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 8 Jan 2018 15:28:10 +0200 Subject: Added code comments for: CodeGeneration. Core. --- .../Visual_Studio/Tango.CodeGeneration/Class.cs | 4 +++ .../Tango.CodeGeneration/EntityCodeFile.cs | 39 ++++++++++++++++++++++ .../Tango.CodeGeneration/EntityCodeFileJava.cs | 17 ++++++++++ .../Tango.CodeGeneration/EnumerationField.cs | 14 ++++++++ .../Tango.CodeGeneration/EnumerationFile.cs | 13 ++++++++ .../Tango.CodeGeneration/EnumerationFileJava.cs | 13 ++++++++ .../Visual_Studio/Tango.CodeGeneration/Helper.cs | 3 ++ .../Tango.CodeGeneration/ObservablesAdapterFile.cs | 4 +++ .../Tango.CodeGeneration/TangoDAOJavaFile.cs | 22 ++++++++++++ 9 files changed, 129 insertions(+) (limited to 'Software/Visual_Studio/Tango.CodeGeneration') diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Class.cs b/Software/Visual_Studio/Tango.CodeGeneration/Class.cs index 45a32ae3e..6f1f4f3b9 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Class.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/Class.cs @@ -6,6 +6,10 @@ using System.Threading.Tasks; namespace Tango.CodeGeneration { + /// + /// Represents a class code object + /// + /// public class Class : CodeObject { /// diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFile.cs b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFile.cs index 7de161f71..bc0f37929 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFile.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFile.cs @@ -6,26 +6,65 @@ using System.Threading.Tasks; namespace Tango.CodeGeneration { + /// + /// Represents a database entity code file. + /// + /// public class EntityCodeFile : Class { + /// + /// Gets or sets the name of the entity. + /// public String EntityName { get; set; } + /// + /// Gets or sets the name of the table. + /// public String TableName { get; set; } + /// + /// Gets or sets the table fields. + /// public List Fields { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The code file name. public EntityCodeFile(String name) : base(name) { Fields = new List(); } } + /// + /// Represents a database entity code file field. + /// public class EntityCodeFileField { + /// + /// Gets or sets the name. + /// public String Name { get; set; } + + /// + /// Gets or sets the name of the field. + /// public String FieldName { get; set; } + + /// + /// Gets or sets the type. + /// public String Type { get; set; } + + /// + /// Gets or sets the description. + /// public String Description { get; set; } + + /// + /// Gets or sets a value indicating whether to initialize this field in the constructor. + /// public bool Construct { get; set; } } } diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJava.cs b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJava.cs index d2bfd80fc..194cd0fc1 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJava.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJava.cs @@ -6,14 +6,31 @@ using System.Threading.Tasks; namespace Tango.CodeGeneration { + /// + /// Represents a database entity Java code file. + /// + /// public class EntityCodeFileJava : Class { + /// + /// Gets or sets the name of the entity. + /// public String EntityName { get; set; } + /// + /// Gets or sets the name of the table. + /// public String TableName { get; set; } + /// + /// Gets or sets the table fields. + /// public List Fields { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The code file name. public EntityCodeFileJava(String name) : base(name) { Fields = new List(); diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EnumerationField.cs b/Software/Visual_Studio/Tango.CodeGeneration/EnumerationField.cs index f8bb98b9b..038055cb9 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/EnumerationField.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/EnumerationField.cs @@ -6,10 +6,24 @@ using System.Threading.Tasks; namespace Tango.CodeGeneration { + /// + /// Represents a single enumeration field. + /// public class EnumerationField { + /// + /// Gets or sets the field name. + /// public String Name { get; set; } + + /// + /// Gets or sets the value. + /// public int Value { get; set; } + + /// + /// Gets or sets an optional description. + /// public String Description { get; set; } } } diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFile.cs b/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFile.cs index e49b7fa48..800513912 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFile.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFile.cs @@ -6,12 +6,25 @@ using System.Threading.Tasks; namespace Tango.CodeGeneration { + /// + /// Represents enumeration code file. + /// + /// public class EnumerationFile : CodeFile { + /// + /// Gets or sets enum the name. + /// public String Name { get; set; } + /// + /// Gets or sets the collection of enum fields. + /// public List Fields { get; set; } + /// + /// Initializes a new instance of the class. + /// public EnumerationFile() { Fields = new List(); diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFileJava.cs b/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFileJava.cs index 6a42326f7..205e528df 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFileJava.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFileJava.cs @@ -6,12 +6,25 @@ using System.Threading.Tasks; namespace Tango.CodeGeneration { + /// + /// Represents a Java enumeration file. + /// + /// public class EnumerationFileJava : CodeFile { + /// + /// Gets or sets the enum name. + /// public String Name { get; set; } + /// + /// Gets or sets the collection of enum fields. + /// public List Fields { get; set; } + /// + /// Initializes a new instance of the class. + /// public EnumerationFileJava() { Fields = new List(); diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs b/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs index 2e0e449f1..dff85a011 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs @@ -10,6 +10,9 @@ using System.Threading.Tasks; namespace Tango.CodeGeneration { + /// + /// Contains several code generation helper methods. + /// internal static class Helper { /// diff --git a/Software/Visual_Studio/Tango.CodeGeneration/ObservablesAdapterFile.cs b/Software/Visual_Studio/Tango.CodeGeneration/ObservablesAdapterFile.cs index 7b1e3d8fe..f62149757 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/ObservablesAdapterFile.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/ObservablesAdapterFile.cs @@ -6,6 +6,10 @@ using System.Threading.Tasks; namespace Tango.CodeGeneration { + /// + /// Represents the Tango DAL layer observables adapter code file. + /// + /// public class ObservablesAdapterFile : Class { diff --git a/Software/Visual_Studio/Tango.CodeGeneration/TangoDAOJavaFile.cs b/Software/Visual_Studio/Tango.CodeGeneration/TangoDAOJavaFile.cs index 5221365e4..566f13311 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/TangoDAOJavaFile.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/TangoDAOJavaFile.cs @@ -6,20 +6,42 @@ using System.Threading.Tasks; namespace Tango.CodeGeneration { + /// + /// Represents the Tango DAO Java code file. + /// + /// public class TangoDAOJavaFile : CodeFile { + /// + /// Gets or sets the class name. + /// public String Name { get; set; } + /// + /// Gets or sets the entities. + /// public List Entities { get; set; } + /// + /// Initializes a new instance of the class. + /// public TangoDAOJavaFile() { Entities = new List(); } + /// + /// Represents a Tango DAO Java entity. + /// public class TangoDAOEntity { + /// + /// Gets or sets the entity name. + /// public String Name { get; set; } + + /// + /// Gets or sets the name of the table. public String TableName { get; set; } } } -- cgit v1.3.1