Atl2NmfSBenchmark/Metamodels/Ant.cs
/// <summary>
/// Adds the given element to the collection
/// </summary>
/// <param name="item">The item to add</param>
Adds the given element to the collection
Adds the given element to the collection
public override void Add(IModelElement item)
            {
                if ((this._parent.TaskName == null))
                {
                    ITaskDef taskNameCasted = item.As<ITaskDef>();
                    if ((taskNameCasted != null))
                    {
                        this._parent.TaskName = taskNameCasted;
                        return;
                    }
                }
                IAttribut attributesCasted = item.As<IAttribut>();
                if ((attributesCasted != null))
                {
                    this._parent.Attributes.Add(attributesCasted);
                }
            }
public override void Add ( IModelElement item ) { if ( ( this . _parent . TaskName == null ) ) { ITaskDef taskNameCasted = item . As < ITaskDef > ( ) ; if ( ( taskNameCasted != null ) ) { this . _parent . TaskName = taskNameCasted ; return ; } } IAttribut attributesCasted = item . As < IAttribut > ( ) ; if ( ( attributesCasted != null ) ) { this . _parent . Attributes . Add ( attributesCasted ) ; } }
Adds the given element to the collection
Adds the given element to the collection
item
IModelElement
The item to add
The item to add