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.PathMember == null))
                {
                    IPath pathMemberCasted = item.As<IPath>();
                    if ((pathMemberCasted != null))
                    {
                        this._parent.PathMember = pathMemberCasted;
                        return;
                    }
                }
                IPathElement pathElementCasted = item.As<IPathElement>();
                if ((pathElementCasted != null))
                {
                    this._parent.PathElement.Add(pathElementCasted);
                }
                IFileSet filesetCasted = item.As<IFileSet>();
                if ((filesetCasted != null))
                {
                    this._parent.Fileset.Add(filesetCasted);
                }
            }
public override void Add ( IModelElement item ) { if ( ( this . _parent . PathMember == null ) ) { IPath pathMemberCasted = item . As < IPath > ( ) ; if ( ( pathMemberCasted != null ) ) { this . _parent . PathMember = pathMemberCasted ; return ; } } IPathElement pathElementCasted = item . As < IPathElement > ( ) ; if ( ( pathElementCasted != null ) ) { this . _parent . PathElement . Add ( pathElementCasted ) ; } IFileSet filesetCasted = item . As < IFileSet > ( ) ; if ( ( filesetCasted != null ) ) { this . _parent . Fileset . Add ( filesetCasted ) ; } }
Adds the given element to the collection
Adds the given element to the collection
item
IModelElement
The item to add
The item to add