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 propertiesIndex = ModelHelper.IndexOfReference(this.Properties, element);
            if ((propertiesIndex != -1))
            {
                return ModelHelper.CreatePath("properties", propertiesIndex);
            }
            int taskdefIndex = ModelHelper.IndexOfReference(this.Taskdef, element);
            if ((taskdefIndex != -1))
            {
                return ModelHelper.CreatePath("taskdef", taskdefIndex);
            }
            int targetsIndex = ModelHelper.IndexOfReference(this.Targets, element);
            if ((targetsIndex != -1))
            {
                return ModelHelper.CreatePath("targets", targetsIndex);
            }
            return base.GetRelativePathForNonIdentifiedChild(element);
        }
protected override string GetRelativePathForNonIdentifiedChild ( IModelElement element ) { if ( ( element == this . PathMember ) ) { return ModelHelper . CreatePath ( " " ) ; } int propertiesIndex = ModelHelper . IndexOfReference ( this . Properties , element ) ; if ( ( propertiesIndex != - 1 ) ) { return ModelHelper . CreatePath ( " " , propertiesIndex ) ; } int taskdefIndex = ModelHelper . IndexOfReference ( this . Taskdef , element ) ; if ( ( taskdefIndex != - 1 ) ) { return ModelHelper . CreatePath ( " " , taskdefIndex ) ; } int targetsIndex = ModelHelper . IndexOfReference ( this . Targets , element ) ; if ( ( targetsIndex != - 1 ) ) { return ModelHelper . CreatePath ( " " , targetsIndex ) ; } 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