public void addStereotype(UML.Profiles.Stereotype stereotype) { HashSet <UML.Profiles.Stereotype> newStereotypes = new HashSet <UML.Profiles.Stereotype>(this.stereotypes); if (!newStereotypes.Contains(stereotype)) { newStereotypes.Add(stereotype); this.stereotypes = newStereotypes; } }
/// creates a set of stereotypes based on the comma separated names string /// and attaches it to the given Diagram public HashSet <UML.Profiles.Stereotype> createStereotypes (UML.Diagrams.Diagram owner, String names) { HashSet <UML.Profiles.Stereotype> newStereotypes = new HashSet <UML.Profiles.Stereotype>(); String[] stereotypeNames = names.Split(','); foreach (String name in stereotypeNames) { if (name != String.Empty) { UML.Profiles.Stereotype stereotype = this.createStereotype(owner, name); if (stereotype != null) { newStereotypes.Add(stereotype); } } } return(newStereotypes); }
public void addStereotype(UML.Profiles.Stereotype stereotype) { throw new NotImplementedException(); }