예제 #1
0
        public void addOwnerToSource(string source, OclConstraintOwner owner)
        {
            HashSet <object> owners;

            sourceToOwners.TryGetValue(source, out owners);

            if (owners == null)
            {
                owners = new HashSet <object>();
                sourceToOwners.Add(source, owners);
            }

            owners.Add(owner);
        }
예제 #2
0
 public void addOwnerToSource(
     OclConstraint constraint,
     OclConstraintOwner owner)
 {
     addOwnerToSource(constraint.getSource(), owner);
 }