KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > common > command > result > ResultType


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

9
10 package org.jboss.portal.common.command.result;
11
12 /**
13  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
14  * @version $Revision: 1.1.1.1 $
15  */

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