diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-24 14:41:52 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-25 12:48:19 -0700 |
| commit | d87492c97b5ac6eec1c86c4cc8b2b45e9f8ad165 (patch) | |
| tree | c6a100e5810ba96aba5b2bb8029d1b902d30c8c6 /src/WixToolset.Data/Symbols/ModuleConfigurationSymbol.cs | |
| parent | 9787570331b511bab73ac8f4f38a3b8cfa053ca5 (diff) | |
| download | wix-d87492c97b5ac6eec1c86c4cc8b2b45e9f8ad165.tar.gz wix-d87492c97b5ac6eec1c86c4cc8b2b45e9f8ad165.tar.bz2 wix-d87492c97b5ac6eec1c86c4cc8b2b45e9f8ad165.zip | |
The Great Tuple to Symbol File Rename (tm)
Diffstat (limited to 'src/WixToolset.Data/Symbols/ModuleConfigurationSymbol.cs')
| -rw-r--r-- | src/WixToolset.Data/Symbols/ModuleConfigurationSymbol.cs | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Symbols/ModuleConfigurationSymbol.cs b/src/WixToolset.Data/Symbols/ModuleConfigurationSymbol.cs new file mode 100644 index 00000000..8188dc87 --- /dev/null +++ b/src/WixToolset.Data/Symbols/ModuleConfigurationSymbol.cs | |||
| @@ -0,0 +1,116 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.Data | ||
| 4 | { | ||
| 5 | using WixToolset.Data.Symbols; | ||
| 6 | |||
| 7 | public static partial class SymbolDefinitions | ||
| 8 | { | ||
| 9 | public static readonly IntermediateSymbolDefinition ModuleConfiguration = new IntermediateSymbolDefinition( | ||
| 10 | SymbolDefinitionType.ModuleConfiguration, | ||
| 11 | new[] | ||
| 12 | { | ||
| 13 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.Format), IntermediateFieldType.Number), | ||
| 14 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.Type), IntermediateFieldType.String), | ||
| 15 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.ContextData), IntermediateFieldType.String), | ||
| 16 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.DefaultValue), IntermediateFieldType.String), | ||
| 17 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.KeyNoOrphan), IntermediateFieldType.Bool), | ||
| 18 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.NonNullable), IntermediateFieldType.Bool), | ||
| 19 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.DisplayName), IntermediateFieldType.String), | ||
| 20 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.Description), IntermediateFieldType.String), | ||
| 21 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.HelpLocation), IntermediateFieldType.String), | ||
| 22 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.HelpKeyword), IntermediateFieldType.String), | ||
| 23 | }, | ||
| 24 | typeof(ModuleConfigurationSymbol)); | ||
| 25 | } | ||
| 26 | } | ||
| 27 | |||
| 28 | namespace WixToolset.Data.Symbols | ||
| 29 | { | ||
| 30 | public enum ModuleConfigurationSymbolFields | ||
| 31 | { | ||
| 32 | Format, | ||
| 33 | Type, | ||
| 34 | ContextData, | ||
| 35 | DefaultValue, | ||
| 36 | KeyNoOrphan, | ||
| 37 | NonNullable, | ||
| 38 | DisplayName, | ||
| 39 | Description, | ||
| 40 | HelpLocation, | ||
| 41 | HelpKeyword, | ||
| 42 | } | ||
| 43 | |||
| 44 | public class ModuleConfigurationSymbol : IntermediateSymbol | ||
| 45 | { | ||
| 46 | public ModuleConfigurationSymbol() : base(SymbolDefinitions.ModuleConfiguration, null, null) | ||
| 47 | { | ||
| 48 | } | ||
| 49 | |||
| 50 | public ModuleConfigurationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleConfiguration, sourceLineNumber, id) | ||
| 51 | { | ||
| 52 | } | ||
| 53 | |||
| 54 | public IntermediateField this[ModuleConfigurationSymbolFields index] => this.Fields[(int)index]; | ||
| 55 | |||
| 56 | public int Format | ||
| 57 | { | ||
| 58 | get => (int)this.Fields[(int)ModuleConfigurationSymbolFields.Format]; | ||
| 59 | set => this.Set((int)ModuleConfigurationSymbolFields.Format, value); | ||
| 60 | } | ||
| 61 | |||
| 62 | public string Type | ||
| 63 | { | ||
| 64 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.Type]; | ||
| 65 | set => this.Set((int)ModuleConfigurationSymbolFields.Type, value); | ||
| 66 | } | ||
| 67 | |||
| 68 | public string ContextData | ||
| 69 | { | ||
| 70 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.ContextData]; | ||
| 71 | set => this.Set((int)ModuleConfigurationSymbolFields.ContextData, value); | ||
| 72 | } | ||
| 73 | |||
| 74 | public string DefaultValue | ||
| 75 | { | ||
| 76 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.DefaultValue]; | ||
| 77 | set => this.Set((int)ModuleConfigurationSymbolFields.DefaultValue, value); | ||
| 78 | } | ||
| 79 | |||
| 80 | public bool KeyNoOrphan | ||
| 81 | { | ||
| 82 | get => this.Fields[(int)ModuleConfigurationSymbolFields.KeyNoOrphan].AsBool(); | ||
| 83 | set => this.Set((int)ModuleConfigurationSymbolFields.KeyNoOrphan, value); | ||
| 84 | } | ||
| 85 | |||
| 86 | public bool NonNullable | ||
| 87 | { | ||
| 88 | get => this.Fields[(int)ModuleConfigurationSymbolFields.NonNullable].AsBool(); | ||
| 89 | set => this.Set((int)ModuleConfigurationSymbolFields.NonNullable, value); | ||
| 90 | } | ||
| 91 | |||
| 92 | public string DisplayName | ||
| 93 | { | ||
| 94 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.DisplayName]; | ||
| 95 | set => this.Set((int)ModuleConfigurationSymbolFields.DisplayName, value); | ||
| 96 | } | ||
| 97 | |||
| 98 | public string Description | ||
| 99 | { | ||
| 100 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.Description]; | ||
| 101 | set => this.Set((int)ModuleConfigurationSymbolFields.Description, value); | ||
| 102 | } | ||
| 103 | |||
| 104 | public string HelpLocation | ||
| 105 | { | ||
| 106 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.HelpLocation]; | ||
| 107 | set => this.Set((int)ModuleConfigurationSymbolFields.HelpLocation, value); | ||
| 108 | } | ||
| 109 | |||
| 110 | public string HelpKeyword | ||
| 111 | { | ||
| 112 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.HelpKeyword]; | ||
| 113 | set => this.Set((int)ModuleConfigurationSymbolFields.HelpKeyword, value); | ||
| 114 | } | ||
| 115 | } | ||
| 116 | } \ No newline at end of file | ||
