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)
            {
                IPatternSet patternsetCasted = item.As<IPatternSet>();
                if ((patternsetCasted != null))
                {
                    this._parent.Patternset.Add(patternsetCasted);
                }
                IIncludes includeCasted = item.As<IIncludes>();
                if ((includeCasted != null))
                {
                    this._parent.Include.Add(includeCasted);
                }
                IExcludes excludeCasted = item.As<IExcludes>();
                if ((excludeCasted != null))
                {
                    this._parent.Exclude.Add(excludeCasted);
                }
            }
public override void Add ( IModelElement item ) { IPatternSet patternsetCasted = item . As < IPatternSet > ( ) ; if ( ( patternsetCasted != null ) ) { this . _parent . Patternset . Add ( patternsetCasted ) ; } IIncludes includeCasted = item . As < IIncludes > ( ) ; if ( ( includeCasted != null ) ) { this . _parent . Include . Add ( includeCasted ) ; } IExcludes excludeCasted = item . As < IExcludes > ( ) ; if ( ( excludeCasted != null ) ) { this . _parent . Exclude . Add ( excludeCasted ) ; } }
Adds the given element to the collection
Adds the given element to the collection
item
IModelElement
The item to add
The item to add