Exemple #1
0
 public static IList <CommentSourceEndModel> AssociatedComments(this ClassModel model)
 {
     return(model.InternalElement.AssociatedElements
            .Where(x => x.Association.SpecializationType == CommentAssociationModel.SpecializationType && x.IsSourceEnd())
            .Select(x => CommentAssociationModel.CreateFromEnd(x).SourceEnd)
            .ToList());
 }
 public CommentAssociationEndModel(IAssociationEnd associationEnd, CommentAssociationModel association)
 {
     _associationEnd = associationEnd;
     _association    = association;
 }
 public bool Equals(CommentAssociationModel other)
 {
     return(Equals(_association, other?._association));
 }
        public static CommentAssociationModel CreateFromEnd(IAssociationEnd associationEnd)
        {
            var association = new CommentAssociationModel(associationEnd.Association);

            return(association);
        }
 public CommentTargetEndModel(IAssociationEnd associationEnd, CommentAssociationModel association) : base(associationEnd, association)
 {
 }
 public CommentSourceEndModel(IAssociationEnd associationEnd, CommentAssociationModel association) : base(associationEnd, association)
 {
 }