1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
|
// 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.
namespace WixToolset.Data
{
using WixToolset.Data.Tuples;
public static partial class TupleDefinitions
{
public static readonly IntermediateTupleDefinition WixBundlePayload = new IntermediateTupleDefinition(
TupleDefinitionType.WixBundlePayload,
new[]
{
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.WixBundlePayload), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Name), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.SourceFile), IntermediateFieldType.Path),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.DownloadUrl), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Compressed), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.UnresolvedSourceFile), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.DisplayName), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Description), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.EnableSignatureValidation), IntermediateFieldType.Bool),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.FileSize), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Version), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Hash), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.PublicKey), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Thumbprint), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Catalog_), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Container_), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Package), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.ContentFile), IntermediateFieldType.Bool),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.EmbeddedId), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.LayoutOnly), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Packaging), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.ParentPackagePayload_), IntermediateFieldType.String),
},
typeof(WixBundlePayloadTuple));
}
}
namespace WixToolset.Data.Tuples
{
using System;
public enum WixBundlePayloadTupleFields
{
WixBundlePayload,
Name,
SourceFile,
DownloadUrl,
Compressed,
UnresolvedSourceFile,
DisplayName,
Description,
EnableSignatureValidation,
FileSize,
Version,
Hash,
PublicKey,
Thumbprint,
Catalog_,
Container_,
Package,
ContentFile,
EmbeddedId,
LayoutOnly,
Packaging,
ParentPackagePayload_,
}
public class WixBundlePayloadTuple : IntermediateTuple
{
public WixBundlePayloadTuple() : base(TupleDefinitions.WixBundlePayload, null, null)
{
}
public WixBundlePayloadTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixBundlePayload, sourceLineNumber, id)
{
}
public IntermediateField this[WixBundlePayloadTupleFields index] => this.Fields[(int)index];
public string WixBundlePayload
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.WixBundlePayload];
set => this.Set((int)WixBundlePayloadTupleFields.WixBundlePayload, value);
}
public string Name
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Name];
set => this.Set((int)WixBundlePayloadTupleFields.Name, value);
}
public string SourceFile
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.SourceFile];
set => this.Set((int)WixBundlePayloadTupleFields.SourceFile, value);
}
public string DownloadUrl
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.DownloadUrl];
set => this.Set((int)WixBundlePayloadTupleFields.DownloadUrl, value);
}
public YesNoDefaultType Compressed
{
get => Enum.TryParse((string)this.Fields[(int)WixBundlePayloadTupleFields.Compressed], true, out YesNoDefaultType value) ? value : YesNoDefaultType.NotSet;
set => this.Set((int)WixBundlePayloadTupleFields.Compressed, value.ToString().ToLowerInvariant());
}
public string UnresolvedSourceFile
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.UnresolvedSourceFile];
set => this.Set((int)WixBundlePayloadTupleFields.UnresolvedSourceFile, value);
}
public string DisplayName
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.DisplayName];
set => this.Set((int)WixBundlePayloadTupleFields.DisplayName, value);
}
public string Description
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Description];
set => this.Set((int)WixBundlePayloadTupleFields.Description, value);
}
public bool EnableSignatureValidation
{
get => (bool)this.Fields[(int)WixBundlePayloadTupleFields.EnableSignatureValidation];
set => this.Set((int)WixBundlePayloadTupleFields.EnableSignatureValidation, value);
}
public int FileSize
{
get => (int)this.Fields[(int)WixBundlePayloadTupleFields.FileSize];
set => this.Set((int)WixBundlePayloadTupleFields.FileSize, value);
}
public string Version
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Version];
set => this.Set((int)WixBundlePayloadTupleFields.Version, value);
}
public string Hash
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Hash];
set => this.Set((int)WixBundlePayloadTupleFields.Hash, value);
}
public string PublicKey
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.PublicKey];
set => this.Set((int)WixBundlePayloadTupleFields.PublicKey, value);
}
public string Thumbprint
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Thumbprint];
set => this.Set((int)WixBundlePayloadTupleFields.Thumbprint, value);
}
public string Catalog_
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Catalog_];
set => this.Set((int)WixBundlePayloadTupleFields.Catalog_, value);
}
public string Container_
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Container_];
set => this.Set((int)WixBundlePayloadTupleFields.Container_, value);
}
public string Package
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Package];
set => this.Set((int)WixBundlePayloadTupleFields.Package, value);
}
public bool ContentFile
{
get => (bool)this.Fields[(int)WixBundlePayloadTupleFields.ContentFile];
set => this.Set((int)WixBundlePayloadTupleFields.ContentFile, value);
}
public string EmbeddedId
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.EmbeddedId];
set => this.Set((int)WixBundlePayloadTupleFields.EmbeddedId, value);
}
public int LayoutOnly
{
get => (int)this.Fields[(int)WixBundlePayloadTupleFields.LayoutOnly];
set => this.Set((int)WixBundlePayloadTupleFields.LayoutOnly, value);
}
public int Packaging
{
get => (int)this.Fields[(int)WixBundlePayloadTupleFields.Packaging];
set => this.Set((int)WixBundlePayloadTupleFields.Packaging, value);
}
public string ParentPackagePayload_
{
get => (string)this.Fields[(int)WixBundlePayloadTupleFields.ParentPackagePayload_];
set => this.Set((int)WixBundlePayloadTupleFields.ParentPackagePayload_, value);
}
}
}
|