Subversion Repositories DevTools

Rev

Rev 2104 | Rev 2116 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2104 Rev 2106
Line 16... Line 16...
16
   {
16
   {
17
      public ArrayList Elements = null;
17
      public ArrayList Elements = null;
18
 
18
 
19
      private ArrayList validElementTypes = null;
19
      private ArrayList validElementTypes = null;
20
 
20
 
21
      private EA_Utilities EA_Utils = null;
-
 
22
 
-
 
23
      public ElementAccumulator(ArrayList elementTypeList, EA_Utilities theEA_Utils): base()
21
      public ElementAccumulator(ArrayList elementTypeList): base()
24
      {
22
      {
25
         validElementTypes = elementTypeList;
23
         validElementTypes = elementTypeList;
26
         EA_Utils = theEA_Utils;
-
 
27
         Elements = new ArrayList();
24
         Elements = new ArrayList();
28
      }
25
      }
29
 
26
 
30
      public override void processElement( EA.Element theElement )
27
      public override void processElement( EA.Element theElement )
31
      {
28
      {
32
         if (validElementTypes.Contains( theElement.Type ))
29
         if (validElementTypes.Contains( theElement.Type ))
33
         {
30
         {
34
            //if ( (theElement.Type == "Requirement") && (theElement.Status == "Rejected") )
31
            //if ( (theElement.Type == "Requirement") && (theElement.Status == "Rejected") )
35
            //   return;
32
            //   return;
36
 
33
 
37
            if (  true == EA_Utils.options.opt_SuppressPrivateClasses
34
            if (  true == EA_DocGenOptions.opt_SuppressPrivateClasses
38
               &&    0 == theElement.Type.CompareTo("Class")
35
               &&    0 == theElement.Type.CompareTo("Class")
39
               && true == theElement.Visibility.StartsWith("Private") )
36
               && true == theElement.Visibility.StartsWith("Private") )
40
            {
37
            {
41
               // do nothing
38
               // do nothing
42
            }
39
            }
43
            else if (   true == EA_Utils.options.opt_ConsiderAPIElementsOnly
40
            else if (   true == EA_DocGenOptions.opt_ConsiderAPIElementsOnly
44
               &&    0  > theElement.StereotypeEx.IndexOf("API") )
41
               &&    0  > theElement.StereotypeEx.IndexOf("API") )
45
            {
42
            {
46
               // do nothing
43
               // do nothing
47
            }
44
            }
48
            else
45
            else