/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(NMF.Models.IModelElement item) { NMF.Models.Meta.ILiteral literalsCasted = item.As <NMF.Models.Meta.ILiteral>(); if ((literalsCasted != null)) { this._parent.Literals.Add(literalsCasted); } }
/// <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(NMF.Models.IModelElement item) { NMF.Models.Meta.ILiteral literalItem = item.As <NMF.Models.Meta.ILiteral>(); if (((literalItem != null) && this._parent.Literals.Remove(literalItem))) { 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 ValueProxy(NMF.Models.Meta.ILiteral modelElement) : base(modelElement, "Value") { }