Atl2NmfSBenchmark/Metamodels/Ant.cs
/// <summary>
/// Resolves the given URI to a child model element
/// </summary>
/// <returns>The model element or null if it could not be found</returns>
/// <param name="reference">The requested reference name</param>
/// <param name="index">The index of this reference</param>
Resolves the given URI to a child model element
Resolves the given URI to a child model element
protected override IModelElement GetModelElementForReference(string reference, int index)
        {
            if ((reference == "FILTER"))
            {
                if ((index < this.Filter.Count))
                {
                    return this.Filter[index];
                }
                else
                {
                    return null;
                }
            }
            if ((reference == "FILTERSFILE"))
            {
                if ((index < this.Filtersfile.Count))
                {
                    return this.Filtersfile[index];
                }
                else
                {
                    return null;
                }
            }
            return base.GetModelElementForReference(reference, index);
        }
protected override IModelElement GetModelElementForReference ( string reference , int index ) { if ( ( reference == " " ) ) { if ( ( index < this . Filter . Count ) ) { return this . Filter [ index ] ; } else { return null ; } } if ( ( reference == " " ) ) { if ( ( index < this . Filtersfile . Count ) ) { return this . Filtersfile [ index ] ; } else { return null ; } } return base . GetModelElementForReference ( reference , index ) ; }
Resolves the given URI to a child model element
Resolves the given URI to a child model element
The model element or null if it could not be found
The model element or null if it could not be found
reference
string
The requested reference name
The requested reference name
index
int
The index of this reference
The index of this reference