| | | 1 | | using System.Diagnostics.CodeAnalysis; |
| | | 2 | | using System.Text.Json.Serialization; |
| | | 3 | | using Spdx3.Model.Core.Classes; |
| | | 4 | | using Spdx3.Model.Software.Enums; |
| | | 5 | | using Spdx3.Serialization; |
| | | 6 | | using Spdx3.Utility; |
| | | 7 | | |
| | | 8 | | namespace Spdx3.Model.Software.Classes; |
| | | 9 | | |
| | | 10 | | public abstract class SoftwareArtifact : Artifact |
| | | 11 | | { |
| | | 12 | | [JsonPropertyName("software_copyrightText")] [JsonConverter(typeof(SpdxModelConverterFactory))] |
| | | 13 | | public string? CopyrightText; |
| | | 14 | | |
| | | 15 | | [JsonPropertyName("software_additionalPurpose")] |
| | | 16 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| | 113 | 17 | | public IList<SoftwarePurpose> AdditionalPurpose { get; } = new List<SoftwarePurpose>(); |
| | | 18 | | |
| | | 19 | | [JsonPropertyName("software_contentIdentifier")] |
| | | 20 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| | 110 | 21 | | public IList<ContentIdentifier> ContentIdentifier { get; } = new List<ContentIdentifier>(); |
| | | 22 | | |
| | | 23 | | [JsonPropertyName("software_primaryPurpose")] |
| | | 24 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| | 30 | 25 | | public SoftwarePurpose? PrimaryPurpose { get; set; } |
| | | 26 | | |
| | | 27 | | [JsonPropertyName("software_attributionText")] |
| | | 28 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| | 113 | 29 | | public IList<string> AttributionText { get; } = new List<string>(); |
| | | 30 | | |
| | | 31 | | // protected internal no-parm constructor required for deserialization |
| | 19 | 32 | | protected internal SoftwareArtifact() |
| | | 33 | | { |
| | 19 | 34 | | } |
| | | 35 | | |
| | | 36 | | [SetsRequiredMembers] |
| | 52 | 37 | | protected SoftwareArtifact(Catalog catalog, CreationInfo creationInfo) : base(catalog, creationInfo) |
| | | 38 | | { |
| | 52 | 39 | | } |
| | | 40 | | } |