View Javadoc
1   /**
2    * This Source Code Form is subject to the terms of the Mozilla Public
3    * License, v. 2.0. If a copy of the MPL was not distributed with this
4    * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5    *
6    * If it is not possible or desirable to put the notice in a particular
7    * file, then You may include the notice in a location (such as a LICENSE
8    * file in a relevant directory) where a recipient would be likely to look
9    * for such a notice.
10  
11   * 
12   */
13   
14  /*  ---------------------------------------------------------------------------
15   *  U.S. Government, Department of the Army
16   *  Army Materiel Command
17   *  Research Development Engineering Command
18   *  Communications Electronics Research Development and Engineering Center
19   *  ---------------------------------------------------------------------------
20   */
21  
22  package org.miloss.fgsms.presentation;
23  
24  import java.util.ArrayList;
25  import java.util.List;
26  
27  /**
28   *
29   * @author AO
30   */
31  public class TransactionLogActionSet {
32  
33      public List<TransactionLogActionData> stuff;
34      public TransactionLogActionSet()
35      {
36          stuff = new ArrayList<TransactionLogActionData>();
37      }
38      public boolean Contains(String action)
39      {
40          for (int i=0; i< stuff.size(); i++)
41          {
42              if (stuff.get(i).action.equalsIgnoreCase(action))
43                  return true;
44          }
45          return false;
46      }
47  
48      public void add(TransactionLogActionData add)
49      {
50          stuff.add(add);
51  
52      }
53  
54      public TransactionLogActionData get(String action)
55      {
56          for (int i=0; i< stuff.size(); i++)
57          {
58              if (stuff.get(i).action.equalsIgnoreCase(action))
59                  return stuff.get(i);
60          }
61          return null;
62      }
63      public int Size()
64      {
65          return stuff.size();
66      }
67  
68  }