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