1   /*
2    * (C) 2002 David Carr  david@carr.name
3    *
4    * This program is free software; you can redistribute it and/or modify
5    * it under the terms of the GNU General Public License as published by
6    * the Free Software Foundation; either version 2 of the License, or
7    * (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU General Public License for more details.
13   *
14   * You should have received a copy of the GNU General Public License
15   * along with this program; if not, write to the Free Software
16   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17   */
18  
19  package net.sourceforge.mflow.impl;
20  
21  import net.sourceforge.mflow.api.Configuration;
22  import net.sourceforge.mflow.api.Contact;
23  import net.sourceforge.mflow.api.ContactGroup;
24  import net.sourceforge.mflow.api.MsgFlowComponent;
25  
26  /***
27   * Contains a copy of the configuration data for MFlow.
28   *
29   * @author <a href="mailto:david@carr.name">David Carr</a>
30   * @version $Revision: 1.3 $
31   */
32  public class ConfigurationImpl implements Configuration {
33    private Contact identity = null;
34    private ContactGroup contacts = null;
35    private MsgFlowComponent[] components = null;
36  
37    /***
38     * Constructor to initialize the configuration object
39     *
40     * @param identity the identity
41     * @param contacts the contacts
42     * @param components the components
43     */
44    ConfigurationImpl(
45      Contact identity,
46      ContactGroup contacts,
47      MsgFlowComponent[] components) {
48      this.identity = identity;
49      this.contacts = contacts;
50      this.components = components;
51    }
52  
53    public Contact getIdentity() {
54      return this.identity;
55    }
56  
57    public void setIdentity(Contact c) {
58      this.identity = c;
59    }
60  
61    public ContactGroup getContacts() {
62      return this.contacts;
63    }
64  
65    public void setContacts(ContactGroup cg) {
66      this.contacts = cg;
67    }
68  
69    public MsgFlowComponent[] getComponents() {
70      return this.components;
71    }
72  
73    public void setComponents(MsgFlowComponent[] cs) {
74      this.components = cs;
75    }
76  }
This page was automatically generated by Maven