KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > common > command > AttributeType


1 /***************************************
2  * *
3  * Nukes: The OpenSource CMS *
4  * *
5  * Distributable under GPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  ***************************************/

9 package org.jboss.portal.common.command;
10
11 /**
12  * A type safe key for the command configuration.
13  *
14  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
15  * @version $Revision: 1.1.1.1 $
16  */

17 public class AttributeType
18 {
19
20    private final String JavaDoc name;
21
22    protected AttributeType(String JavaDoc name)
23    {
24       if (name == null)
25       {
26          throw new IllegalArgumentException JavaDoc("Name cannot be null");
27       }
28       this.name = name;
29    }
30
31    public String JavaDoc getName()
32    {
33       return name;
34    }
35 }
36
Popular Tags