diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs b/src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs index 3d573f7a..89365605 100644 --- a/src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs +++ b/src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs | |||
| @@ -2,30 +2,30 @@ | |||
| 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 WixComplexReference = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition WixComplexReference = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.WixComplexReference, | 10 | SymbolDefinitionType.WixComplexReference, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(WixComplexReferenceTupleFields.Parent), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.Parent), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(WixComplexReferenceTupleFields.ParentAttributes), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.ParentAttributes), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(WixComplexReferenceTupleFields.ParentLanguage), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.ParentLanguage), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(WixComplexReferenceTupleFields.Child), IntermediateFieldType.String), | 16 | new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.Child), IntermediateFieldType.String), |
| 17 | new IntermediateFieldDefinition(nameof(WixComplexReferenceTupleFields.ChildAttributes), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.ChildAttributes), IntermediateFieldType.String), |
| 18 | new IntermediateFieldDefinition(nameof(WixComplexReferenceTupleFields.Attributes), IntermediateFieldType.Bool), | 18 | new IntermediateFieldDefinition(nameof(WixComplexReferenceSymbolFields.Attributes), IntermediateFieldType.Bool), |
| 19 | }, | 19 | }, |
| 20 | typeof(WixComplexReferenceTuple)); | 20 | typeof(WixComplexReferenceSymbol)); |
| 21 | } | 21 | } |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | namespace WixToolset.Data.Tuples | 24 | namespace WixToolset.Data.Symbols |
| 25 | { | 25 | { |
| 26 | using System; | 26 | using System; |
| 27 | 27 | ||
| 28 | public enum WixComplexReferenceTupleFields | 28 | public enum WixComplexReferenceSymbolFields |
| 29 | { | 29 | { |
| 30 | Parent, | 30 | Parent, |
| 31 | ParentAttributes, | 31 | ParentAttributes, |
| @@ -35,52 +35,52 @@ namespace WixToolset.Data.Tuples | |||
| 35 | Attributes, | 35 | Attributes, |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | public class WixComplexReferenceTuple : IntermediateTuple | 38 | public class WixComplexReferenceSymbol : IntermediateSymbol |
| 39 | { | 39 | { |
| 40 | public WixComplexReferenceTuple() : base(TupleDefinitions.WixComplexReference, null, null) | 40 | public WixComplexReferenceSymbol() : base(SymbolDefinitions.WixComplexReference, null, null) |
| 41 | { | 41 | { |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | public WixComplexReferenceTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixComplexReference, sourceLineNumber, id) | 44 | public WixComplexReferenceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixComplexReference, sourceLineNumber, id) |
| 45 | { | 45 | { |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | public IntermediateField this[WixComplexReferenceTupleFields index] => this.Fields[(int)index]; | 48 | public IntermediateField this[WixComplexReferenceSymbolFields index] => this.Fields[(int)index]; |
| 49 | 49 | ||
| 50 | public string Parent | 50 | public string Parent |
| 51 | { | 51 | { |
| 52 | get => (string)this.Fields[(int)WixComplexReferenceTupleFields.Parent]; | 52 | get => (string)this.Fields[(int)WixComplexReferenceSymbolFields.Parent]; |
| 53 | set => this.Set((int)WixComplexReferenceTupleFields.Parent, value); | 53 | set => this.Set((int)WixComplexReferenceSymbolFields.Parent, value); |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | public ComplexReferenceParentType ParentType | 56 | public ComplexReferenceParentType ParentType |
| 57 | { | 57 | { |
| 58 | get => (ComplexReferenceParentType)Enum.Parse(typeof(ComplexReferenceParentType), (string)this.Fields[(int)WixComplexReferenceTupleFields.ParentAttributes], true); | 58 | get => (ComplexReferenceParentType)Enum.Parse(typeof(ComplexReferenceParentType), (string)this.Fields[(int)WixComplexReferenceSymbolFields.ParentAttributes], true); |
| 59 | set => this.Set((int)WixComplexReferenceTupleFields.ParentAttributes, value.ToString()); | 59 | set => this.Set((int)WixComplexReferenceSymbolFields.ParentAttributes, value.ToString()); |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | public string ParentLanguage | 62 | public string ParentLanguage |
| 63 | { | 63 | { |
| 64 | get => (string)this.Fields[(int)WixComplexReferenceTupleFields.ParentLanguage]; | 64 | get => (string)this.Fields[(int)WixComplexReferenceSymbolFields.ParentLanguage]; |
| 65 | set => this.Set((int)WixComplexReferenceTupleFields.ParentLanguage, value); | 65 | set => this.Set((int)WixComplexReferenceSymbolFields.ParentLanguage, value); |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | public string Child | 68 | public string Child |
| 69 | { | 69 | { |
| 70 | get => (string)this.Fields[(int)WixComplexReferenceTupleFields.Child]; | 70 | get => (string)this.Fields[(int)WixComplexReferenceSymbolFields.Child]; |
| 71 | set => this.Set((int)WixComplexReferenceTupleFields.Child, value); | 71 | set => this.Set((int)WixComplexReferenceSymbolFields.Child, value); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | public ComplexReferenceChildType ChildType | 74 | public ComplexReferenceChildType ChildType |
| 75 | { | 75 | { |
| 76 | get => (ComplexReferenceChildType)Enum.Parse(typeof(ComplexReferenceChildType), (string)this.Fields[(int)WixComplexReferenceTupleFields.ChildAttributes], true); | 76 | get => (ComplexReferenceChildType)Enum.Parse(typeof(ComplexReferenceChildType), (string)this.Fields[(int)WixComplexReferenceSymbolFields.ChildAttributes], true); |
| 77 | set => this.Set((int)WixComplexReferenceTupleFields.ChildAttributes, value.ToString()); | 77 | set => this.Set((int)WixComplexReferenceSymbolFields.ChildAttributes, value.ToString()); |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | public bool IsPrimary | 80 | public bool IsPrimary |
| 81 | { | 81 | { |
| 82 | get => (bool)this.Fields[(int)WixComplexReferenceTupleFields.Attributes]; | 82 | get => (bool)this.Fields[(int)WixComplexReferenceSymbolFields.Attributes]; |
| 83 | set => this.Set((int)WixComplexReferenceTupleFields.Attributes, value); | 83 | set => this.Set((int)WixComplexReferenceSymbolFields.Attributes, value); |
| 84 | } | 84 | } |
| 85 | } | 85 | } |
| 86 | } \ No newline at end of file | 86 | } \ No newline at end of file |
