KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > config > BaseConfig


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.verge.mvc.config;
8
9
10 /**
11  * This class is the abstract base class for all the
12  * configuration classes it stores the name of the
13  * configuration and also has a constructor to setup the
14  * name
15  *
16  * @author Brian Pontarelli
17  */

18 public abstract class BaseConfig {
19
20     private String JavaDoc name;
21
22
23     /** Construct an empty BaseConfig */
24     public BaseConfig() {
25     }
26
27     /**
28      * Construct a <code>BaseConfig</code> with the given name
29      *
30      * @param name The name of the configuration
31      */

32     public BaseConfig(String JavaDoc name) {
33         assert (name != null) : "name == null";
34
35         this.name = name;
36     }
37
38
39     public String JavaDoc getName() {
40         return name;
41     }
42
43     void setName(String JavaDoc value) {
44         name = value;
45     }
46 }
47
Popular Tags