Skip to content

Commit

Permalink
[Implement] IInstanceValue
Browse files Browse the repository at this point in the history
  • Loading branch information
samatstariongroup committed Aug 9, 2024
1 parent 6abbaf5 commit c8e8e42
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions uml4net/POCO/Classification/IInstanceValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,18 @@

namespace uml4net.POCO.Classification
{
using uml4net.Decorators;
using uml4net.POCO.Values;

/// <summary>
/// An InstanceValue is a ValueSpecification that identifies an instance.
/// </summary>
public interface IInstanceValue : IValueSpecification
{
/// <summary>
/// The InstanceSpecification that represents the specified value.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1)]
public IInstanceSpecification Instance { get; set; }
}
}
7 changes: 7 additions & 0 deletions uml4net/POCO/Classification/InstanceValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,12 @@ public class InstanceValue : IInstanceValue
[Property(aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1)]
[Implements(implementation: "ITypedElement.Type")]
public IType Type { get; set; }

/// <summary>
/// The InstanceSpecification that represents the specified value.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1)]
[Implements(implementation: "IInstanceValue.Instance")]
public IInstanceSpecification Instance { get; set; }
}
}

0 comments on commit c8e8e42

Please sign in to comment.