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)
        {
            if ((element == this.PathMember))
            {
                return ModelHelper.CreatePath("PathMember");
            }
            int pathElementIndex = ModelHelper.IndexOfReference(this.PathElement, element);
            if ((pathElementIndex != -1))
            {
                return ModelHelper.CreatePath("pathElement", pathElementIndex);
            }
            int filesetIndex = ModelHelper.IndexOfReference(this.Fileset, element);
            if ((filesetIndex != -1))
            {
                return ModelHelper.CreatePath("fileset", filesetIndex);
            }
            return base.GetRelativePathForNonIdentifiedChild(element);
        }
protected override string GetRelativePathForNonIdentifiedChild ( IModelElement element ) { if ( ( element == this . PathMember ) ) { return ModelHelper . CreatePath ( " " ) ; } int pathElementIndex = ModelHelper . IndexOfReference ( this . PathElement , element ) ; if ( ( pathElementIndex != - 1 ) ) { return ModelHelper . CreatePath ( " " , pathElementIndex ) ; } int filesetIndex = ModelHelper . IndexOfReference ( this . Fileset , element ) ; if ( ( filesetIndex != - 1 ) ) { return ModelHelper . CreatePath ( " " , filesetIndex ) ; } 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