private void deleteAllConstraintsForHashMap( string sourceName, Dictionary <string, OclConstraint> map) { List <object> toBeRemoved = new List <object>(); foreach (KeyValuePair <string, OclConstraint> element in map) { OclConstraint constraint = element.Value; if (constraint.getSource().Equals(sourceName)) { toBeRemoved.Add(element.Key); } } foreach (string element in toBeRemoved) { map.Remove(element); } }
public void addOwnerToSource( OclConstraint constraint, OclConstraintOwner owner) { addOwnerToSource(constraint.getSource(), owner); }