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.Fileset == null))
                {
                    IFileSet filesetCasted = item.As<IFileSet>();
                    if ((filesetCasted != null))
                    {
                        this._parent.Fileset = filesetCasted;
                        return;
                    }
                }
                if ((this._parent.Filterset == null))
                {
                    IFilterSet filtersetCasted = item.As<IFilterSet>();
                    if ((filtersetCasted != null))
                    {
                        this._parent.Filterset = filtersetCasted;
                        return;
                    }
                }
                if ((this._parent.Mapper == null))
                {
                    IMapper mapperCasted = item.As<IMapper>();
                    if ((mapperCasted != null))
                    {
                        this._parent.Mapper = mapperCasted;
                        return;
                    }
                }
            }
public override void Add ( IModelElement item ) { if ( ( this . _parent . Fileset == null ) ) { IFileSet filesetCasted = item . As < IFileSet > ( ) ; if ( ( filesetCasted != null ) ) { this . _parent . Fileset = filesetCasted ; return ; } } if ( ( this . _parent . Filterset == null ) ) { IFilterSet filtersetCasted = item . As < IFilterSet > ( ) ; if ( ( filtersetCasted != null ) ) { this . _parent . Filterset = filtersetCasted ; return ; } } if ( ( this . _parent . Mapper == null ) ) { IMapper mapperCasted = item . As < IMapper > ( ) ; if ( ( mapperCasted != null ) ) { this . _parent . Mapper = mapperCasted ; return ; } } }
Adds the given element to the collection
Adds the given element to the collection
item
IModelElement
The item to add
The item to add