diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixBundleCustomDataTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixBundleCustomDataTuple.cs | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/WixToolset.Data/Tuples/WixBundleCustomDataTuple.cs b/src/WixToolset.Data/Tuples/WixBundleCustomDataTuple.cs index d0878deb..0490f9f7 100644 --- a/src/WixToolset.Data/Tuples/WixBundleCustomDataTuple.cs +++ b/src/WixToolset.Data/Tuples/WixBundleCustomDataTuple.cs | |||
| @@ -2,25 +2,25 @@ | |||
| 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 WixBundleCustomData = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition WixBundleCustomData = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.WixBundleCustomData, | 10 | SymbolDefinitionType.WixBundleCustomData, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(WixBundleCustomDataTupleFields.AttributeNames), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(WixBundleCustomDataSymbolFields.AttributeNames), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(WixBundleCustomDataTupleFields.Type), IntermediateFieldType.Number), | 14 | new IntermediateFieldDefinition(nameof(WixBundleCustomDataSymbolFields.Type), IntermediateFieldType.Number), |
| 15 | new IntermediateFieldDefinition(nameof(WixBundleCustomDataTupleFields.BundleExtensionRef), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(WixBundleCustomDataSymbolFields.BundleExtensionRef), IntermediateFieldType.String), |
| 16 | }, | 16 | }, |
| 17 | typeof(WixBundleCustomDataTuple)); | 17 | typeof(WixBundleCustomDataSymbol)); |
| 18 | } | 18 | } |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | namespace WixToolset.Data.Tuples | 21 | namespace WixToolset.Data.Symbols |
| 22 | { | 22 | { |
| 23 | public enum WixBundleCustomDataTupleFields | 23 | public enum WixBundleCustomDataSymbolFields |
| 24 | { | 24 | { |
| 25 | AttributeNames, | 25 | AttributeNames, |
| 26 | Type, | 26 | Type, |
| @@ -34,36 +34,36 @@ namespace WixToolset.Data.Tuples | |||
| 34 | BundleExtension, | 34 | BundleExtension, |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | public class WixBundleCustomDataTuple : IntermediateTuple | 37 | public class WixBundleCustomDataSymbol : IntermediateSymbol |
| 38 | { | 38 | { |
| 39 | public const char AttributeNamesSeparator = '\x85'; | 39 | public const char AttributeNamesSeparator = '\x85'; |
| 40 | 40 | ||
| 41 | public WixBundleCustomDataTuple() : base(TupleDefinitions.WixBundleCustomData, null, null) | 41 | public WixBundleCustomDataSymbol() : base(SymbolDefinitions.WixBundleCustomData, null, null) |
| 42 | { | 42 | { |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | public WixBundleCustomDataTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixBundleCustomData, sourceLineNumber, id) | 45 | public WixBundleCustomDataSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleCustomData, sourceLineNumber, id) |
| 46 | { | 46 | { |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | public IntermediateField this[WixBundleCustomDataTupleFields index] => this.Fields[(int)index]; | 49 | public IntermediateField this[WixBundleCustomDataSymbolFields index] => this.Fields[(int)index]; |
| 50 | 50 | ||
| 51 | public string AttributeNames | 51 | public string AttributeNames |
| 52 | { | 52 | { |
| 53 | get => (string)this.Fields[(int)WixBundleCustomDataTupleFields.AttributeNames]; | 53 | get => (string)this.Fields[(int)WixBundleCustomDataSymbolFields.AttributeNames]; |
| 54 | set => this.Set((int)WixBundleCustomDataTupleFields.AttributeNames, value); | 54 | set => this.Set((int)WixBundleCustomDataSymbolFields.AttributeNames, value); |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | public WixBundleCustomDataType Type | 57 | public WixBundleCustomDataType Type |
| 58 | { | 58 | { |
| 59 | get => (WixBundleCustomDataType)this.Fields[(int)WixBundleCustomDataTupleFields.Type].AsNumber(); | 59 | get => (WixBundleCustomDataType)this.Fields[(int)WixBundleCustomDataSymbolFields.Type].AsNumber(); |
| 60 | set => this.Set((int)WixBundleCustomDataTupleFields.Type, (int)value); | 60 | set => this.Set((int)WixBundleCustomDataSymbolFields.Type, (int)value); |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | public string BundleExtensionRef | 63 | public string BundleExtensionRef |
| 64 | { | 64 | { |
| 65 | get => (string)this.Fields[(int)WixBundleCustomDataTupleFields.BundleExtensionRef]; | 65 | get => (string)this.Fields[(int)WixBundleCustomDataSymbolFields.BundleExtensionRef]; |
| 66 | set => this.Set((int)WixBundleCustomDataTupleFields.BundleExtensionRef, value); | 66 | set => this.Set((int)WixBundleCustomDataSymbolFields.BundleExtensionRef, value); |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | public string[] AttributeNamesSeparated => this.AttributeNames.Split(AttributeNamesSeparator); | 69 | public string[] AttributeNamesSeparated => this.AttributeNames.Split(AttributeNamesSeparator); |
