diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/ModuleConfigurationTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/ModuleConfigurationTuple.cs | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/src/WixToolset.Data/Tuples/ModuleConfigurationTuple.cs b/src/WixToolset.Data/Tuples/ModuleConfigurationTuple.cs index fd0cf365..8188dc87 100644 --- a/src/WixToolset.Data/Tuples/ModuleConfigurationTuple.cs +++ b/src/WixToolset.Data/Tuples/ModuleConfigurationTuple.cs | |||
| @@ -2,32 +2,32 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Data | 3 | namespace WixToolset.Data |
| 4 | { | 4 | { |
| 5 | using WixToolset.Data.Tuples; | 5 | using WixToolset.Data.Symbols; |
| 6 | 6 | ||
| 7 | public static partial class TupleDefinitions | 7 | public static partial class SymbolDefinitions |
| 8 | { | 8 | { |
| 9 | public static readonly IntermediateTupleDefinition ModuleConfiguration = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition ModuleConfiguration = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.ModuleConfiguration, | 10 | SymbolDefinitionType.ModuleConfiguration, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(ModuleConfigurationTupleFields.Format), IntermediateFieldType.Number), | 13 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.Format), IntermediateFieldType.Number), |
| 14 | new IntermediateFieldDefinition(nameof(ModuleConfigurationTupleFields.Type), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.Type), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(ModuleConfigurationTupleFields.ContextData), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.ContextData), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(ModuleConfigurationTupleFields.DefaultValue), IntermediateFieldType.String), | 16 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.DefaultValue), IntermediateFieldType.String), |
| 17 | new IntermediateFieldDefinition(nameof(ModuleConfigurationTupleFields.KeyNoOrphan), IntermediateFieldType.Bool), | 17 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.KeyNoOrphan), IntermediateFieldType.Bool), |
| 18 | new IntermediateFieldDefinition(nameof(ModuleConfigurationTupleFields.NonNullable), IntermediateFieldType.Bool), | 18 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.NonNullable), IntermediateFieldType.Bool), |
| 19 | new IntermediateFieldDefinition(nameof(ModuleConfigurationTupleFields.DisplayName), IntermediateFieldType.String), | 19 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.DisplayName), IntermediateFieldType.String), |
| 20 | new IntermediateFieldDefinition(nameof(ModuleConfigurationTupleFields.Description), IntermediateFieldType.String), | 20 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.Description), IntermediateFieldType.String), |
| 21 | new IntermediateFieldDefinition(nameof(ModuleConfigurationTupleFields.HelpLocation), IntermediateFieldType.String), | 21 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.HelpLocation), IntermediateFieldType.String), |
| 22 | new IntermediateFieldDefinition(nameof(ModuleConfigurationTupleFields.HelpKeyword), IntermediateFieldType.String), | 22 | new IntermediateFieldDefinition(nameof(ModuleConfigurationSymbolFields.HelpKeyword), IntermediateFieldType.String), |
| 23 | }, | 23 | }, |
| 24 | typeof(ModuleConfigurationTuple)); | 24 | typeof(ModuleConfigurationSymbol)); |
| 25 | } | 25 | } |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | namespace WixToolset.Data.Tuples | 28 | namespace WixToolset.Data.Symbols |
| 29 | { | 29 | { |
| 30 | public enum ModuleConfigurationTupleFields | 30 | public enum ModuleConfigurationSymbolFields |
| 31 | { | 31 | { |
| 32 | Format, | 32 | Format, |
| 33 | Type, | 33 | Type, |
| @@ -41,76 +41,76 @@ namespace WixToolset.Data.Tuples | |||
| 41 | HelpKeyword, | 41 | HelpKeyword, |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | public class ModuleConfigurationTuple : IntermediateTuple | 44 | public class ModuleConfigurationSymbol : IntermediateSymbol |
| 45 | { | 45 | { |
| 46 | public ModuleConfigurationTuple() : base(TupleDefinitions.ModuleConfiguration, null, null) | 46 | public ModuleConfigurationSymbol() : base(SymbolDefinitions.ModuleConfiguration, null, null) |
| 47 | { | 47 | { |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | public ModuleConfigurationTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.ModuleConfiguration, sourceLineNumber, id) | 50 | public ModuleConfigurationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleConfiguration, sourceLineNumber, id) |
| 51 | { | 51 | { |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | public IntermediateField this[ModuleConfigurationTupleFields index] => this.Fields[(int)index]; | 54 | public IntermediateField this[ModuleConfigurationSymbolFields index] => this.Fields[(int)index]; |
| 55 | 55 | ||
| 56 | public int Format | 56 | public int Format |
| 57 | { | 57 | { |
| 58 | get => (int)this.Fields[(int)ModuleConfigurationTupleFields.Format]; | 58 | get => (int)this.Fields[(int)ModuleConfigurationSymbolFields.Format]; |
| 59 | set => this.Set((int)ModuleConfigurationTupleFields.Format, value); | 59 | set => this.Set((int)ModuleConfigurationSymbolFields.Format, value); |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | public string Type | 62 | public string Type |
| 63 | { | 63 | { |
| 64 | get => (string)this.Fields[(int)ModuleConfigurationTupleFields.Type]; | 64 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.Type]; |
| 65 | set => this.Set((int)ModuleConfigurationTupleFields.Type, value); | 65 | set => this.Set((int)ModuleConfigurationSymbolFields.Type, value); |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | public string ContextData | 68 | public string ContextData |
| 69 | { | 69 | { |
| 70 | get => (string)this.Fields[(int)ModuleConfigurationTupleFields.ContextData]; | 70 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.ContextData]; |
| 71 | set => this.Set((int)ModuleConfigurationTupleFields.ContextData, value); | 71 | set => this.Set((int)ModuleConfigurationSymbolFields.ContextData, value); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | public string DefaultValue | 74 | public string DefaultValue |
| 75 | { | 75 | { |
| 76 | get => (string)this.Fields[(int)ModuleConfigurationTupleFields.DefaultValue]; | 76 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.DefaultValue]; |
| 77 | set => this.Set((int)ModuleConfigurationTupleFields.DefaultValue, value); | 77 | set => this.Set((int)ModuleConfigurationSymbolFields.DefaultValue, value); |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | public bool KeyNoOrphan | 80 | public bool KeyNoOrphan |
| 81 | { | 81 | { |
| 82 | get => this.Fields[(int)ModuleConfigurationTupleFields.KeyNoOrphan].AsBool(); | 82 | get => this.Fields[(int)ModuleConfigurationSymbolFields.KeyNoOrphan].AsBool(); |
| 83 | set => this.Set((int)ModuleConfigurationTupleFields.KeyNoOrphan, value); | 83 | set => this.Set((int)ModuleConfigurationSymbolFields.KeyNoOrphan, value); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | public bool NonNullable | 86 | public bool NonNullable |
| 87 | { | 87 | { |
| 88 | get => this.Fields[(int)ModuleConfigurationTupleFields.NonNullable].AsBool(); | 88 | get => this.Fields[(int)ModuleConfigurationSymbolFields.NonNullable].AsBool(); |
| 89 | set => this.Set((int)ModuleConfigurationTupleFields.NonNullable, value); | 89 | set => this.Set((int)ModuleConfigurationSymbolFields.NonNullable, value); |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | public string DisplayName | 92 | public string DisplayName |
| 93 | { | 93 | { |
| 94 | get => (string)this.Fields[(int)ModuleConfigurationTupleFields.DisplayName]; | 94 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.DisplayName]; |
| 95 | set => this.Set((int)ModuleConfigurationTupleFields.DisplayName, value); | 95 | set => this.Set((int)ModuleConfigurationSymbolFields.DisplayName, value); |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | public string Description | 98 | public string Description |
| 99 | { | 99 | { |
| 100 | get => (string)this.Fields[(int)ModuleConfigurationTupleFields.Description]; | 100 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.Description]; |
| 101 | set => this.Set((int)ModuleConfigurationTupleFields.Description, value); | 101 | set => this.Set((int)ModuleConfigurationSymbolFields.Description, value); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | public string HelpLocation | 104 | public string HelpLocation |
| 105 | { | 105 | { |
| 106 | get => (string)this.Fields[(int)ModuleConfigurationTupleFields.HelpLocation]; | 106 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.HelpLocation]; |
| 107 | set => this.Set((int)ModuleConfigurationTupleFields.HelpLocation, value); | 107 | set => this.Set((int)ModuleConfigurationSymbolFields.HelpLocation, value); |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | public string HelpKeyword | 110 | public string HelpKeyword |
| 111 | { | 111 | { |
| 112 | get => (string)this.Fields[(int)ModuleConfigurationTupleFields.HelpKeyword]; | 112 | get => (string)this.Fields[(int)ModuleConfigurationSymbolFields.HelpKeyword]; |
| 113 | set => this.Set((int)ModuleConfigurationTupleFields.HelpKeyword, value); | 113 | set => this.Set((int)ModuleConfigurationSymbolFields.HelpKeyword, value); |
| 114 | } | 114 | } |
| 115 | } | 115 | } |
| 116 | } \ No newline at end of file | 116 | } \ No newline at end of file |
