Skip to content

Commit

Permalink
[Refactor] IDirectedRelationship.Source and Target
Browse files Browse the repository at this point in the history
  • Loading branch information
samatstariongroup committed Aug 27, 2024
1 parent eebd346 commit 8fdbb33
Show file tree
Hide file tree
Showing 16 changed files with 41 additions and 41 deletions.
4 changes: 2 additions & 2 deletions uml4net/POCO/Classification/Generalization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ public class Generalization : IGeneralization
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Source")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Source { get; }
public List<IElement> Source => throw new NotImplementedException();

/// <summary>
/// Specifies the target Element(s) of the DirectedRelationship.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Target")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Target { get; }
public List<IElement> Target => throw new NotImplementedException();

/// <summary>
/// Specifies the elements related by the Relationship.
Expand Down
6 changes: 3 additions & 3 deletions uml4net/POCO/Classification/Substitution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class Substitution : ISubstitution
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue)]
[Implements(implementation: "IDependency.Client")]
[SubsettedProperty(propertyName: "DirectedRelationship.Source")]
public List<INamedElement> Client { get; set; }
public List<INamedElement> Client { get; set; } = new List<INamedElement>();

/// <summary>
/// The Element(s) on which the client Element(s) depend in some respect. The modeler may stipulate
Expand All @@ -109,15 +109,15 @@ public class Substitution : ISubstitution
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Source")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Source { get; }
public List<IElement> Source => throw new NotImplementedException();

/// <summary>
/// Specifies the target Element(s) of the DirectedRelationship.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Target")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Target { get; }
public List<IElement> Target => throw new NotImplementedException();

/// <summary>
/// Indicates the Dependencies that reference this NamedElement as a client."
Expand Down
6 changes: 3 additions & 3 deletions uml4net/POCO/CommonStructure/Abstraction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class Abstraction : IAbstraction
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue)]
[Implements(implementation: "IDependency.Client")]
[SubsettedProperty(propertyName: "DirectedRelationship.Source")]
public List<INamedElement> Client { get; set; }
public List<INamedElement> Client { get; set; } = new List<INamedElement>();

/// <summary>
/// The Element(s) on which the client Element(s) depend in some respect. The modeler may stipulate
Expand All @@ -87,15 +87,15 @@ public class Abstraction : IAbstraction
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Source")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Source { get; }
public List<IElement> Source => throw new NotImplementedException();

/// <summary>
/// Specifies the target Element(s) of the DirectedRelationship.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Target")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Target { get; }
public List<IElement> Target => throw new NotImplementedException();

/// <summary>
/// The Comments owned by this Element.
Expand Down
6 changes: 3 additions & 3 deletions uml4net/POCO/CommonStructure/Dependency.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class Dependency : IDependency
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue)]
[Implements(implementation: "IDependency.Client")]
[SubsettedProperty(propertyName: "DirectedRelationship.Source")]
public List<INamedElement> Client { get; set; }
public List<INamedElement> Client { get; set; } = new List<INamedElement>();

/// <summary>
/// The Element(s) on which the client Element(s) depend in some respect. The modeler may stipulate
Expand All @@ -78,15 +78,15 @@ public class Dependency : IDependency
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Source")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Source { get; }
public List<IElement> Source => throw new NotImplementedException();

/// <summary>
/// Specifies the target Element(s) of the DirectedRelationship.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Target")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Target { get; }
public List<IElement> Target => throw new NotImplementedException();

/// <summary>
/// The Comments owned by this Element.
Expand Down
4 changes: 2 additions & 2 deletions uml4net/POCO/CommonStructure/ElementImport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ public class ElementImport : IElementImport
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Source")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Source { get; }
public List<IElement> Source => throw new NotImplementedException();

/// <summary>
/// Specifies the target Element(s) of the DirectedRelationship.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Target")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Target { get; }
public List<IElement> Target => throw new NotImplementedException();

/// <summary>
/// Specifies the name that should be added to the importing Namespace in lieu of the name of
Expand Down
6 changes: 3 additions & 3 deletions uml4net/POCO/CommonStructure/Realization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ public class Realization : IRealization
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Source")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Source { get; }
public List<IElement> Source => throw new NotImplementedException();

/// <summary>
/// Specifies the target Element(s) of the DirectedRelationship.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Target")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Target { get; }
public List<IElement> Target => throw new NotImplementedException();

/// <summary>
/// The Element(s) dependent on the supplier Element(s). In some cases (such as a trace Abstraction)
Expand All @@ -109,7 +109,7 @@ public class Realization : IRealization
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue)]
[Implements(implementation: "IDependency.Client")]
[SubsettedProperty(propertyName: "DirectedRelationship.Source")]
public List<INamedElement> Client { get; set; }
public List<INamedElement> Client { get; set; } = new List<INamedElement>();

/// <summary>
/// The Element(s) on which the client Element(s) depend in some respect. The modeler may stipulate
Expand Down
4 changes: 2 additions & 2 deletions uml4net/POCO/CommonStructure/TemplateBinding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ public class TemplateBinding : ITemplateBinding
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Source")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Source { get; }
public List<IElement> Source => throw new NotImplementedException();

/// <summary>
/// Specifies the target Element(s) of the DirectedRelationship.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Target")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Target { get; }
public List<IElement> Target => throw new NotImplementedException();

/// <summary>
/// Specifies the elements related by the Relationship.
Expand Down
6 changes: 3 additions & 3 deletions uml4net/POCO/CommonStructure/Usage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public class Usage : IUsage
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue)]
[Implements(implementation: "IDependency.Client")]
[SubsettedProperty(propertyName: "DirectedRelationship.Source")]
public List<INamedElement> Client { get; set; }
public List<INamedElement> Client { get; set; } = new List<INamedElement>();

/// <summary>
/// The Element(s) on which the client Element(s) depend in some respect. The modeler may stipulate
Expand All @@ -97,15 +97,15 @@ public class Usage : IUsage
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Source")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Source { get; }
public List<IElement> Source => throw new NotImplementedException();

/// <summary>
/// Specifies the target Element(s) of the DirectedRelationship.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Target")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Target { get; }
public List<IElement> Target => throw new NotImplementedException();

/// <summary>
/// Indicates the Dependencies that reference this NamedElement as a client."
Expand Down
6 changes: 3 additions & 3 deletions uml4net/POCO/Deployments/Deployment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class Deployment : IDeployment
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue)]
[Implements(implementation: "IDependency.Client")]
[SubsettedProperty(propertyName: "DirectedRelationship.Source")]
public List<INamedElement> Client { get; set; }
public List<INamedElement> Client { get; set; } = new List<INamedElement>();

/// <summary>
/// The Element(s) on which the client Element(s) depend in some respect. The modeler may stipulate
Expand All @@ -100,15 +100,15 @@ public class Deployment : IDeployment
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Source")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Source { get; }
public List<IElement> Source => throw new NotImplementedException();

/// <summary>
/// Specifies the target Element(s) of the DirectedRelationship.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Target")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Target { get; }
public List<IElement> Target => throw new NotImplementedException();

/// <summary>
/// Indicates the Dependencies that reference this NamedElement as a client."
Expand Down
6 changes: 3 additions & 3 deletions uml4net/POCO/Deployments/Manifestation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public class Manifestation : IManifestation
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue)]
[Implements(implementation: "IDependency.Client")]
[SubsettedProperty(propertyName: "DirectedRelationship.Source")]
public List<INamedElement> Client { get; set; }
public List<INamedElement> Client { get; set; } = new List<INamedElement>();

/// <summary>
/// The Element(s) on which the client Element(s) depend in some respect. The modeler may stipulate
Expand All @@ -108,15 +108,15 @@ public class Manifestation : IManifestation
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Source")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Source { get; }
public List<IElement> Source => throw new NotImplementedException();

/// <summary>
/// Specifies the target Element(s) of the DirectedRelationship.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Target")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Target { get; }
public List<IElement> Target => throw new NotImplementedException();

/// <summary>
/// Indicates the Dependencies that reference this NamedElement as a client."
Expand Down
4 changes: 2 additions & 2 deletions uml4net/POCO/InformationFlows/InformationFlow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ public class InformationFlow : IInformationFlow
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Source")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Source { get; }
public List<IElement> Source => throw new NotImplementedException();

/// <summary>
/// Specifies the target Element(s) of the DirectedRelationship.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Target")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Target { get; }
public List<IElement> Target => throw new NotImplementedException();

/// <summary>
/// Indicates the Dependencies that reference this NamedElement as a client."
Expand Down
6 changes: 3 additions & 3 deletions uml4net/POCO/SimpleClassifiers/InterfaceRealization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public class InterfaceRealization : IInterfaceRealization
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue)]
[Implements(implementation: "IDependency.Client")]
[SubsettedProperty(propertyName: "DirectedRelationship.Source")]
public List<INamedElement> Client { get; set; }
public List<INamedElement> Client { get; set; } = new List<INamedElement>();

/// <summary>
/// The Element(s) on which the client Element(s) depend in some respect. The modeler may stipulate
Expand All @@ -110,15 +110,15 @@ public class InterfaceRealization : IInterfaceRealization
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Source")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Source { get; }
public List<IElement> Source => throw new NotImplementedException();

/// <summary>
/// Specifies the target Element(s) of the DirectedRelationship.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Target")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Target { get; }
public List<IElement> Target => throw new NotImplementedException();

/// <summary>
/// Indicates the Dependencies that reference this NamedElement as a client."
Expand Down
4 changes: 2 additions & 2 deletions uml4net/POCO/StateMachines/ProtocolConformance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ public class ProtocolConformance : IProtocolConformance
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Source")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Source { get; }
public List<IElement> Source => throw new NotImplementedException();

/// <summary>
/// Specifies the target Element(s) of the DirectedRelationship.
/// </summary>
[Property(aggregation: AggregationKind.None, lowerValue: 1, upperValue: int.MaxValue, isReadOnly: true, isDerived: true, isDerivedUnion: true)]
[Implements(implementation: "IDirectedRelationship.Target")]
[SubsettedProperty(propertyName: "Relationship.RelatedElement")]
public List<IElement> Target { get; }
public List<IElement> Target => throw new NotImplementedException();

/// <summary>
/// Specifies the elements related by the Relationship.
Expand Down
Loading

0 comments on commit 8fdbb33

Please sign in to comment.