示例#1
0
 /// <summary>
 /// Adds the given element to the collection
 /// </summary>
 /// <param name="item">The item to add</param>
 public override void Add(IModelElement item)
 {
     MDEMGTT.Class.IAttribute attrCasted = item.As <MDEMGTT.Class.IAttribute>();
     if ((attrCasted != null))
     {
         this._parent.Attr.Add(attrCasted);
     }
 }
示例#2
0
 /// <summary>
 /// Removes the given item from the collection
 /// </summary>
 /// <returns>True, if the item was removed, otherwise False</returns>
 /// <param name="item">The item that should be removed</param>
 public override bool Remove(IModelElement item)
 {
     MDEMGTT.Class.IAttribute attributeItem = item.As <MDEMGTT.Class.IAttribute>();
     if (((attributeItem != null) &&
          this._parent.Attr.Remove(attributeItem)))
     {
         return(true);
     }
     return(false);
 }
示例#3
0
 /// <summary>
 /// Creates a new observable property access proxy
 /// </summary>
 /// <param name="modelElement">The model instance element for which to create the property access proxy</param>
 public MultiValuedProxy(MDEMGTT.Class.IAttribute modelElement) :
     base(modelElement, "multiValued")
 {
 }