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 patternsetIndex = ModelHelper.IndexOfReference(this.Patternset, element);
            if ((patternsetIndex != -1))
            {
                return ModelHelper.CreatePath("patternset", patternsetIndex);
            }
            int includeIndex = ModelHelper.IndexOfReference(this.Include, element);
            if ((includeIndex != -1))
            {
                return ModelHelper.CreatePath("include", includeIndex);
            }
            int excludeIndex = ModelHelper.IndexOfReference(this.Exclude, element);
            if ((excludeIndex != -1))
            {
                return ModelHelper.CreatePath("exclude", excludeIndex);
            }
            return base.GetRelativePathForNonIdentifiedChild(element);
        }
protected override string GetRelativePathForNonIdentifiedChild ( IModelElement element ) { int patternsetIndex = ModelHelper . IndexOfReference ( this . Patternset , element ) ; if ( ( patternsetIndex != - 1 ) ) { return ModelHelper . CreatePath ( " " , patternsetIndex ) ; } int includeIndex = ModelHelper . IndexOfReference ( this . Include , element ) ; if ( ( includeIndex != - 1 ) ) { return ModelHelper . CreatePath ( " " , includeIndex ) ; } int excludeIndex = ModelHelper . IndexOfReference ( this . Exclude , element ) ; if ( ( excludeIndex != - 1 ) ) { return ModelHelper . CreatePath ( " " , excludeIndex ) ; } 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