Example #1
0
 /// <summary>
 /// creates a new relation writer 
 /// </summary>
 /// <param name="content"></param>
 /// <param name="checkForPreviousContent">
 /// if true, check if an additional separator must be added before creating
 /// the next relation. This is the case if there are already other elements before
 /// this entry (e.g. classifiers)</param>
 public RelationWriter(DiagramContentMixin content, bool checkForPreviousContent = false)
 {
     _content = content;
     // if there are entries before this relation,
     // add an additional separator
     if (checkForPreviousContent && !_content.IsEmpty)
         _content.AppendToken(",");
 }
Example #2
0
 public ClassWriter(bool hasMembers, DiagramContentMixin content = null)
 {
     _hasMembers = hasMembers;
     _content = content;
 }