|
| 1 | +// ------------------------------------------------------------------------------------------------- |
| 2 | +// <copyright file="Branch.cs" company="Starion Group S.A."> |
| 3 | +// |
| 4 | +// Copyright 2022-2025 Starion Group S.A. |
| 5 | +// |
| 6 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +// you may not use this file except in compliance with the License. |
| 8 | +// You may obtain a copy of the License at |
| 9 | +// |
| 10 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +// |
| 12 | +// Unless required by applicable law or agreed to in writing, software |
| 13 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +// See the License for the specific language governing permissions and |
| 16 | +// limitations under the License. |
| 17 | +// |
| 18 | +// </copyright> |
| 19 | +// ------------------------------------------------------------------------------------------------ |
| 20 | + |
| 21 | +// ------------------------------------------------------------------------------------------------ |
| 22 | +// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- |
| 23 | +// ------------------------------------------------------------------------------------------------ |
| 24 | + |
| 25 | +namespace SysML2.NET.PIM.DTO |
| 26 | +{ |
| 27 | + using System; |
| 28 | + using System.CodeDom.Compiler; |
| 29 | + using System.Collections.Generic; |
| 30 | + |
| 31 | + using SysML2.NET.Common; |
| 32 | + using SysML2.NET.Decorators; |
| 33 | + |
| 34 | + /// <summary> |
| 35 | + /// </summary> |
| 36 | + [Class(xmiId: "API_Model-Branch", isAbstract: false, isFinalSpecialization: false, isActive: false)] |
| 37 | + [GeneratedCode("sysml2.net", "latest")] |
| 38 | + public partial class Branch : IBranch |
| 39 | + { |
| 40 | + /// <summary> |
| 41 | + /// Set of ID's that are assigned using legacy or tool specific implementations that don't conform to |
| 42 | + /// Kernel Object Lifecycle (KOL) or RFC 4122. For example git's SHA1 hashing id mechanism or historical |
| 43 | + /// SysML 1.X ID's |
| 44 | + /// </summary> |
| 45 | + [Property(xmiId: "API_Model-Record-alias", aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isOrdered: false, isReadOnly: true, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)] |
| 46 | + [Implements(implementation: "IRecord.Alias")] |
| 47 | + public List<string> Alias { get; set; } = []; |
| 48 | + |
| 49 | + /// <summary> |
| 50 | + /// </summary> |
| 51 | + [Property(xmiId: "API_Model-CommitReference-created", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)] |
| 52 | + [Implements(implementation: "ICommitReference.Created")] |
| 53 | + public DateTime Created { get; set; } |
| 54 | + |
| 55 | + /// <summary> |
| 56 | + /// </summary> |
| 57 | + [Property(xmiId: "API_Model-Record-description", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)] |
| 58 | + [Implements(implementation: "IRecord.Description")] |
| 59 | + public string Description { get; set; } |
| 60 | + |
| 61 | + /// <summary> |
| 62 | + /// </summary> |
| 63 | + [Property(xmiId: "API_Model-Branch-head", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)] |
| 64 | + [RedefinedProperty(propertyName: "API_Model-CommitReference-referencedCommit")] |
| 65 | + [Implements(implementation: "IBranch.Head")] |
| 66 | + public new Guid Head { get; set; } |
| 67 | + |
| 68 | + /// <summary> |
| 69 | + /// Uniqueness constraints? |
| 70 | + /// </summary> |
| 71 | + [Property(xmiId: "API_Model-Record-humanIdentifier", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: true, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)] |
| 72 | + [SubsettedProperty(propertyName: "API_Model-Record-alias")] |
| 73 | + [Implements(implementation: "IRecord.HumanIdentifier")] |
| 74 | + public string HumanIdentifier { get; set; } |
| 75 | + |
| 76 | + /// <summary> |
| 77 | + /// Every Record shall have a calculated globally unique identifier. This identifier shall conform to |
| 78 | + /// RFC 4122. |
| 79 | + /// </summary> |
| 80 | + [Property(xmiId: "API_Model-Record-id", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: true, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)] |
| 81 | + [Implements(implementation: "IRecord.Id")] |
| 82 | + public Guid Id { get; set; } |
| 83 | + |
| 84 | + /// <summary> |
| 85 | + /// </summary> |
| 86 | + [Property(xmiId: "API_Model-CommitReference-name", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)] |
| 87 | + [Implements(implementation: "ICommitReference.Name")] |
| 88 | + public string Name { get; set; } |
| 89 | + |
| 90 | + /// <summary> |
| 91 | + /// </summary> |
| 92 | + [Property(xmiId: "API_Model-Branch-owningProject", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)] |
| 93 | + [RedefinedProperty(propertyName: "API_Model-CommitReference-owningProject")] |
| 94 | + [Implements(implementation: "IBranch.OwningProject")] |
| 95 | + public new Guid OwningProject { get; set; } |
| 96 | + |
| 97 | + /// <summary> |
| 98 | + /// </summary> |
| 99 | + [Property(xmiId: "API_Model-CommitReference-owningProject", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)] |
| 100 | + [RedefinedByProperty("IBranch.OwningProject")] |
| 101 | + [Implements(implementation: "ICommitReference.OwningProject")] |
| 102 | + Guid ICommitReference.OwningProject |
| 103 | + { |
| 104 | + get => throw new InvalidOperationException("Redefined by property IBranch.OwningProject"); |
| 105 | + set => throw new InvalidOperationException("Redefined by property IBranch.OwningProject"); |
| 106 | + } |
| 107 | + |
| 108 | + /// <summary> |
| 109 | + /// </summary> |
| 110 | + [Property(xmiId: "API_Model-CommitReference-referencedCommit", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)] |
| 111 | + [RedefinedByProperty("IBranch.Head")] |
| 112 | + [Implements(implementation: "ICommitReference.ReferencedCommit")] |
| 113 | + Guid ICommitReference.ReferencedCommit |
| 114 | + { |
| 115 | + get => throw new InvalidOperationException("Redefined by property IBranch.Head"); |
| 116 | + set => throw new InvalidOperationException("Redefined by property IBranch.Head"); |
| 117 | + } |
| 118 | + |
| 119 | + /// <summary> |
| 120 | + /// The context specific URI from which the data represented in LinkedDataRecord's can be retrieved |
| 121 | + /// </summary> |
| 122 | + [Property(xmiId: "API_Model-Record-resourceIdentifier", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: false, defaultValue: null)] |
| 123 | + [Implements(implementation: "IRecord.ResourceIdentifier")] |
| 124 | + public Uri ResourceIdentifier { get; set; } |
| 125 | + |
| 126 | + } |
| 127 | +} |
| 128 | + |
| 129 | +// ------------------------------------------------------------------------------------------------ |
| 130 | +// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- |
| 131 | +// ------------------------------------------------------------------------------------------------ |
0 commit comments