/// <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); } }
/// <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); }
/// <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") { }