Subversion Repositories DevTools

Rev

Rev 2106 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2088 ghuddy 1
using System;
2
 
3
namespace EA_DocGen
4
{
5
   /// <summary>
6
	/// Class containing EA model find/search functions. 
7
	/// </summary>
8
	public class EA_Finders
9
	{
10
 
2106 ghuddy 11
      public static bool elementNameExistsInPackage(EA.Package parentPackage, string name)
2088 ghuddy 12
      {
13
         foreach (EA.Element element in parentPackage.Elements)
14
         {
2132 ghuddy 15
            if (element.Name == name)
2088 ghuddy 16
            {
17
               return true;
18
            }
19
         }
20
         return false;
21
      }
22
 
23
 
24
	}
25
}