KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openi > stat > r > RFunctionParam


1 /*********************************************************************************
2  * The contents of this file are subject to the OpenI Public License Version 1.0
3  * ("License"); You may not use this file except in compliance with the
4  * License. You may obtain a copy of the License at
5  * http://www.openi.org/docs/LICENSE.txt
6  *
7  * Software distributed under the License is distributed on an "AS IS" basis,
8  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
9  * the specific language governing rights and limitations under the License.
10  *
11  * The Original Code is: OpenI Open Source
12  *
13  * The Initial Developer of the Original Code is Loyalty Matrix, Inc.
14  * Portions created by Loyalty Matrix, Inc. are
15  * Copyright (C) 2005 Loyalty Matrix, Inc.; All Rights Reserved.
16  *
17  * Contributor(s): ______________________________________.
18  *
19  ********************************************************************************/

20
21
22 package org.openi.stat.r;
23
24 /**
25  * @author Uddhab Pant <br>
26  * @version $Revision: 1.2 $ $Date: 2006/04/12 00:39:12 $ <br>
27  *
28  * This class defines a parameter for RFunction.
29  * A parameter contains name, display name, type(data type) and value (default value)
30  *
31  */

32
33 public class RFunctionParam {
34     private String JavaDoc name;
35     private String JavaDoc displayName;
36     private String JavaDoc type;
37     private String JavaDoc value;
38
39     /**
40      * Default constructor
41      */

42     public RFunctionParam() {
43     }
44
45     /**
46      * To initialize RFunctionParam object with name, display name and type
47      * @param name String
48      * @param displayName String
49      * @param type String
50      * @param defaultValue String
51      */

52     public RFunctionParam(String JavaDoc name, String JavaDoc displayName, String JavaDoc type, String JavaDoc defaultValue){
53         this.name = name;
54         this.displayName = displayName;
55         this.type = type;
56         this.value = defaultValue;
57     }
58
59     /**
60      *
61      * @param name String
62      */

63     public void setName(String JavaDoc name) {
64         this.name = name;
65     }
66
67     /**
68      *
69      * @param displayName String
70      */

71     public void setDisplayName(String JavaDoc displayName) {
72         this.displayName = displayName;
73     }
74
75     /**
76      *
77      * @param type String
78      */

79     public void setType(String JavaDoc type) {
80         this.type = type;
81     }
82
83     /**
84      *
85      * @param value String
86      */

87     public void setValue(String JavaDoc value) {
88         this.value = value;
89     }
90
91     /**
92      *
93      * @return String
94      */

95     public String JavaDoc getName() {
96         return name;
97     }
98
99     /**
100      *
101      * @return String
102      */

103     public String JavaDoc getDisplayName() {
104         return displayName;
105     }
106
107     /**
108      *
109      * @return String
110      */

111     public String JavaDoc getType() {
112         return type;
113     }
114
115
116     /**
117      *
118      * @return String
119      */

120     public String JavaDoc getValue() {
121         return value;
122     }
123 }
124
Popular Tags