Atl2NmfSBenchmark/Metamodels/Ant.cs
/// <summary>
/// Gets the relative URI fragment for the given child model element
/// </summary>
/// <returns>A fragment of the relative URI</returns>
/// <param name="element">The element that should be looked for</param>
Gets the relative URI fragment for the given child model element
Gets the relative URI fragment for the given child model element
protected override string GetRelativePathForNonIdentifiedChild(IModelElement element)
        {
            int filterIndex = ModelHelper.IndexOfReference(this.Filter, element);
            if ((filterIndex != -1))
            {
                return ModelHelper.CreatePath("filter", filterIndex);
            }
            int filtersfileIndex = ModelHelper.IndexOfReference(this.Filtersfile, element);
            if ((filtersfileIndex != -1))
            {
                return ModelHelper.CreatePath("filtersfile", filtersfileIndex);
            }
            return base.GetRelativePathForNonIdentifiedChild(element);
        }
protected override string GetRelativePathForNonIdentifiedChild ( IModelElement element ) { int filterIndex = ModelHelper . IndexOfReference ( this . Filter , element ) ; if ( ( filterIndex != - 1 ) ) { return ModelHelper . CreatePath ( " " , filterIndex ) ; } int filtersfileIndex = ModelHelper . IndexOfReference ( this . Filtersfile , element ) ; if ( ( filtersfileIndex != - 1 ) ) { return ModelHelper . CreatePath ( " " , filtersfileIndex ) ; } return base . GetRelativePathForNonIdentifiedChild ( element ) ; }
Gets the relative URI fragment for the given child model element
Gets the relative URI fragment for the given child model element
A fragment of the relative URI
A fragment of the relative URI
element
IModelElement
The element that should be looked for
The element that should be looked for