View Javadoc

1   /*
2    * AbstractHostGroup.java
3    *
4    * Created on May 10, 2005, 3:44 PM
5    *
6    * To change this template, choose Tools | Options and locate the template under
7    * the Source Creation and Management node. Right-click the template and choose
8    * Open. You can then make changes to the template in the Source Editor.
9    */
10  
11  package gov.bnl.gums;
12  
13  import java.util.ArrayList;
14  import java.util.Collections;
15  import java.util.List;
16  
17  /***
18   *
19   * @author carcassi
20   */
21  public abstract class AbstractHostGroup implements HostGroup {
22  
23      private List groupMapper = new ArrayList();
24      
25      /*** Returns the list of group mapping associated with this mapping.
26       * @return A list of GroupMapper objects.
27       */
28      public List getGroupMappers() {
29          return Collections.unmodifiableList(groupMapper);
30      }
31      
32      /*** Changes the list of group mapping associated with this mapping.
33       *
34       * @param groupMapper A list of GroupMapper objects.
35       */
36      public void setGroupMapper(List groupMapper) {
37          this.groupMapper = new ArrayList(groupMapper);
38      }
39      
40  }