/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { IEEnumLiteral eLiteralsCasted = item.As <IEEnumLiteral>(); if ((eLiteralsCasted != null)) { this._parent.ELiterals.Add(eLiteralsCasted); } }
/// <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) { IEEnumLiteral eEnumLiteralItem = item.As <IEEnumLiteral>(); if (((eEnumLiteralItem != null) && this._parent.ELiterals.Remove(eEnumLiteralItem))) { 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(IEEnumLiteral modelElement) : base(modelElement) { }