diff options
Diffstat (limited to '')
-rw-r--r-- | src/WixToolset.Data/Tuples/FeatureTuple.cs | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/src/WixToolset.Data/Tuples/FeatureTuple.cs b/src/WixToolset.Data/Tuples/FeatureTuple.cs index b057d079..67972b63 100644 --- a/src/WixToolset.Data/Tuples/FeatureTuple.cs +++ b/src/WixToolset.Data/Tuples/FeatureTuple.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 Feature = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition Feature = new IntermediateSymbolDefinition( |
10 | TupleDefinitionType.Feature, | 10 | SymbolDefinitionType.Feature, |
11 | new[] | 11 | new[] |
12 | { | 12 | { |
13 | new IntermediateFieldDefinition(nameof(FeatureTupleFields.ParentFeatureRef), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(FeatureSymbolFields.ParentFeatureRef), IntermediateFieldType.String), |
14 | new IntermediateFieldDefinition(nameof(FeatureTupleFields.Title), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(FeatureSymbolFields.Title), IntermediateFieldType.String), |
15 | new IntermediateFieldDefinition(nameof(FeatureTupleFields.Description), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(FeatureSymbolFields.Description), IntermediateFieldType.String), |
16 | new IntermediateFieldDefinition(nameof(FeatureTupleFields.Display), IntermediateFieldType.Number), | 16 | new IntermediateFieldDefinition(nameof(FeatureSymbolFields.Display), IntermediateFieldType.Number), |
17 | new IntermediateFieldDefinition(nameof(FeatureTupleFields.Level), IntermediateFieldType.Number), | 17 | new IntermediateFieldDefinition(nameof(FeatureSymbolFields.Level), IntermediateFieldType.Number), |
18 | new IntermediateFieldDefinition(nameof(FeatureTupleFields.DirectoryRef), IntermediateFieldType.String), | 18 | new IntermediateFieldDefinition(nameof(FeatureSymbolFields.DirectoryRef), IntermediateFieldType.String), |
19 | new IntermediateFieldDefinition(nameof(FeatureTupleFields.DisallowAbsent), IntermediateFieldType.Bool), | 19 | new IntermediateFieldDefinition(nameof(FeatureSymbolFields.DisallowAbsent), IntermediateFieldType.Bool), |
20 | new IntermediateFieldDefinition(nameof(FeatureTupleFields.DisallowAdvertise), IntermediateFieldType.Bool), | 20 | new IntermediateFieldDefinition(nameof(FeatureSymbolFields.DisallowAdvertise), IntermediateFieldType.Bool), |
21 | new IntermediateFieldDefinition(nameof(FeatureTupleFields.InstallDefault), IntermediateFieldType.Number), | 21 | new IntermediateFieldDefinition(nameof(FeatureSymbolFields.InstallDefault), IntermediateFieldType.Number), |
22 | new IntermediateFieldDefinition(nameof(FeatureTupleFields.TypicalDefault), IntermediateFieldType.Number), | 22 | new IntermediateFieldDefinition(nameof(FeatureSymbolFields.TypicalDefault), IntermediateFieldType.Number), |
23 | }, | 23 | }, |
24 | typeof(FeatureTuple)); | 24 | typeof(FeatureSymbol)); |
25 | } | 25 | } |
26 | } | 26 | } |
27 | 27 | ||
28 | namespace WixToolset.Data.Tuples | 28 | namespace WixToolset.Data.Symbols |
29 | { | 29 | { |
30 | public enum FeatureTupleFields | 30 | public enum FeatureSymbolFields |
31 | { | 31 | { |
32 | ParentFeatureRef, | 32 | ParentFeatureRef, |
33 | Title, | 33 | Title, |
@@ -54,76 +54,76 @@ namespace WixToolset.Data.Tuples | |||
54 | Advertise | 54 | Advertise |
55 | } | 55 | } |
56 | 56 | ||
57 | public class FeatureTuple : IntermediateTuple | 57 | public class FeatureSymbol : IntermediateSymbol |
58 | { | 58 | { |
59 | public FeatureTuple() : base(TupleDefinitions.Feature, null, null) | 59 | public FeatureSymbol() : base(SymbolDefinitions.Feature, null, null) |
60 | { | 60 | { |
61 | } | 61 | } |
62 | 62 | ||
63 | public FeatureTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.Feature, sourceLineNumber, id) | 63 | public FeatureSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Feature, sourceLineNumber, id) |
64 | { | 64 | { |
65 | } | 65 | } |
66 | 66 | ||
67 | public IntermediateField this[FeatureTupleFields index] => this.Fields[(int)index]; | 67 | public IntermediateField this[FeatureSymbolFields index] => this.Fields[(int)index]; |
68 | 68 | ||
69 | public string ParentFeatureRef | 69 | public string ParentFeatureRef |
70 | { | 70 | { |
71 | get => (string)this.Fields[(int)FeatureTupleFields.ParentFeatureRef]; | 71 | get => (string)this.Fields[(int)FeatureSymbolFields.ParentFeatureRef]; |
72 | set => this.Set((int)FeatureTupleFields.ParentFeatureRef, value); | 72 | set => this.Set((int)FeatureSymbolFields.ParentFeatureRef, value); |
73 | } | 73 | } |
74 | 74 | ||
75 | public string Title | 75 | public string Title |
76 | { | 76 | { |
77 | get => (string)this.Fields[(int)FeatureTupleFields.Title]; | 77 | get => (string)this.Fields[(int)FeatureSymbolFields.Title]; |
78 | set => this.Set((int)FeatureTupleFields.Title, value); | 78 | set => this.Set((int)FeatureSymbolFields.Title, value); |
79 | } | 79 | } |
80 | 80 | ||
81 | public string Description | 81 | public string Description |
82 | { | 82 | { |
83 | get => (string)this.Fields[(int)FeatureTupleFields.Description]; | 83 | get => (string)this.Fields[(int)FeatureSymbolFields.Description]; |
84 | set => this.Set((int)FeatureTupleFields.Description, value); | 84 | set => this.Set((int)FeatureSymbolFields.Description, value); |
85 | } | 85 | } |
86 | 86 | ||
87 | public int Display | 87 | public int Display |
88 | { | 88 | { |
89 | get => (int)this.Fields[(int)FeatureTupleFields.Display]; | 89 | get => (int)this.Fields[(int)FeatureSymbolFields.Display]; |
90 | set => this.Set((int)FeatureTupleFields.Display, value); | 90 | set => this.Set((int)FeatureSymbolFields.Display, value); |
91 | } | 91 | } |
92 | 92 | ||
93 | public int Level | 93 | public int Level |
94 | { | 94 | { |
95 | get => (int)this.Fields[(int)FeatureTupleFields.Level]; | 95 | get => (int)this.Fields[(int)FeatureSymbolFields.Level]; |
96 | set => this.Set((int)FeatureTupleFields.Level, value); | 96 | set => this.Set((int)FeatureSymbolFields.Level, value); |
97 | } | 97 | } |
98 | 98 | ||
99 | public string DirectoryRef | 99 | public string DirectoryRef |
100 | { | 100 | { |
101 | get => (string)this.Fields[(int)FeatureTupleFields.DirectoryRef]; | 101 | get => (string)this.Fields[(int)FeatureSymbolFields.DirectoryRef]; |
102 | set => this.Set((int)FeatureTupleFields.DirectoryRef, value); | 102 | set => this.Set((int)FeatureSymbolFields.DirectoryRef, value); |
103 | } | 103 | } |
104 | 104 | ||
105 | public bool DisallowAbsent | 105 | public bool DisallowAbsent |
106 | { | 106 | { |
107 | get => this.Fields[(int)FeatureTupleFields.DisallowAbsent].AsBool(); | 107 | get => this.Fields[(int)FeatureSymbolFields.DisallowAbsent].AsBool(); |
108 | set => this.Set((int)FeatureTupleFields.DisallowAbsent, value); | 108 | set => this.Set((int)FeatureSymbolFields.DisallowAbsent, value); |
109 | } | 109 | } |
110 | 110 | ||
111 | public bool DisallowAdvertise | 111 | public bool DisallowAdvertise |
112 | { | 112 | { |
113 | get => this.Fields[(int)FeatureTupleFields.DisallowAdvertise].AsBool(); | 113 | get => this.Fields[(int)FeatureSymbolFields.DisallowAdvertise].AsBool(); |
114 | set => this.Set((int)FeatureTupleFields.DisallowAdvertise, value); | 114 | set => this.Set((int)FeatureSymbolFields.DisallowAdvertise, value); |
115 | } | 115 | } |
116 | 116 | ||
117 | public FeatureInstallDefault InstallDefault | 117 | public FeatureInstallDefault InstallDefault |
118 | { | 118 | { |
119 | get => (FeatureInstallDefault)this.Fields[(int)FeatureTupleFields.InstallDefault].AsNumber(); | 119 | get => (FeatureInstallDefault)this.Fields[(int)FeatureSymbolFields.InstallDefault].AsNumber(); |
120 | set => this.Set((int)FeatureTupleFields.InstallDefault, (int)value); | 120 | set => this.Set((int)FeatureSymbolFields.InstallDefault, (int)value); |
121 | } | 121 | } |
122 | 122 | ||
123 | public FeatureTypicalDefault TypicalDefault | 123 | public FeatureTypicalDefault TypicalDefault |
124 | { | 124 | { |
125 | get => (FeatureTypicalDefault)this.Fields[(int)FeatureTupleFields.TypicalDefault].AsNumber(); | 125 | get => (FeatureTypicalDefault)this.Fields[(int)FeatureSymbolFields.TypicalDefault].AsNumber(); |
126 | set => this.Set((int)FeatureTupleFields.TypicalDefault, (int)value); | 126 | set => this.Set((int)FeatureSymbolFields.TypicalDefault, (int)value); |
127 | } | 127 | } |
128 | } | 128 | } |
129 | } \ No newline at end of file | 129 | } \ No newline at end of file |