diff options
Diffstat (limited to 'src/WixToolset.Data/Symbols/PublishComponentSymbol.cs')
-rw-r--r-- | src/WixToolset.Data/Symbols/PublishComponentSymbol.cs | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Symbols/PublishComponentSymbol.cs b/src/WixToolset.Data/Symbols/PublishComponentSymbol.cs new file mode 100644 index 00000000..3fb81801 --- /dev/null +++ b/src/WixToolset.Data/Symbols/PublishComponentSymbol.cs | |||
@@ -0,0 +1,76 @@ | |||
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 PublishComponent = new IntermediateSymbolDefinition( | ||
10 | SymbolDefinitionType.PublishComponent, | ||
11 | new[] | ||
12 | { | ||
13 | new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.ComponentId), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.Qualifier), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.ComponentRef), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.AppData), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(PublishComponentSymbolFields.FeatureRef), IntermediateFieldType.String), | ||
18 | }, | ||
19 | typeof(PublishComponentSymbol)); | ||
20 | } | ||
21 | } | ||
22 | |||
23 | namespace WixToolset.Data.Symbols | ||
24 | { | ||
25 | public enum PublishComponentSymbolFields | ||
26 | { | ||
27 | ComponentId, | ||
28 | Qualifier, | ||
29 | ComponentRef, | ||
30 | AppData, | ||
31 | FeatureRef, | ||
32 | } | ||
33 | |||
34 | public class PublishComponentSymbol : IntermediateSymbol | ||
35 | { | ||
36 | public PublishComponentSymbol() : base(SymbolDefinitions.PublishComponent, null, null) | ||
37 | { | ||
38 | } | ||
39 | |||
40 | public PublishComponentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.PublishComponent, sourceLineNumber, id) | ||
41 | { | ||
42 | } | ||
43 | |||
44 | public IntermediateField this[PublishComponentSymbolFields index] => this.Fields[(int)index]; | ||
45 | |||
46 | public string ComponentId | ||
47 | { | ||
48 | get => (string)this.Fields[(int)PublishComponentSymbolFields.ComponentId]; | ||
49 | set => this.Set((int)PublishComponentSymbolFields.ComponentId, value); | ||
50 | } | ||
51 | |||
52 | public string Qualifier | ||
53 | { | ||
54 | get => (string)this.Fields[(int)PublishComponentSymbolFields.Qualifier]; | ||
55 | set => this.Set((int)PublishComponentSymbolFields.Qualifier, value); | ||
56 | } | ||
57 | |||
58 | public string ComponentRef | ||
59 | { | ||
60 | get => (string)this.Fields[(int)PublishComponentSymbolFields.ComponentRef]; | ||
61 | set => this.Set((int)PublishComponentSymbolFields.ComponentRef, value); | ||
62 | } | ||
63 | |||
64 | public string AppData | ||
65 | { | ||
66 | get => (string)this.Fields[(int)PublishComponentSymbolFields.AppData]; | ||
67 | set => this.Set((int)PublishComponentSymbolFields.AppData, value); | ||
68 | } | ||
69 | |||
70 | public string FeatureRef | ||
71 | { | ||
72 | get => (string)this.Fields[(int)PublishComponentSymbolFields.FeatureRef]; | ||
73 | set => this.Set((int)PublishComponentSymbolFields.FeatureRef, value); | ||
74 | } | ||
75 | } | ||
76 | } \ No newline at end of file | ||