| 1230 |
leisch |
1 |
/*==============================================================================
|
|
|
2 |
|
|
|
3 |
Project:
|
|
|
4 |
|
|
|
5 |
JAVA Source file for the class Value
|
|
|
6 |
|
|
|
7 |
COPYRIGHT (C), 1998, Thomas Baier
|
| 3765 |
leisch |
8 |
|
|
|
9 |
* This program is free software; you can redistribute it and/or modify
|
|
|
10 |
* it under the terms of the GNU General Public License as published by
|
|
|
11 |
* the Free Software Foundation; either version 2 of the License, or
|
|
|
12 |
* (at your option) any later version.
|
|
|
13 |
*
|
|
|
14 |
* This program is distributed in the hope that it will be useful,
|
|
|
15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
17 |
* GNU General Public License for more details.
|
|
|
18 |
*
|
|
|
19 |
* You should have received a copy of the GNU General Public License
|
|
|
20 |
* along with this program; if not, write to the Free Software
|
| 5458 |
ripley |
21 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
22 |
|
| 1230 |
leisch |
23 |
|
|
|
24 |
$Source: /scratch/CVS-ARCHIVE/R/doc/html/search/Value.java,v $
|
|
|
25 |
|
| 19562 |
pd |
26 |
$Revision: 1.4 $
|
| 1230 |
leisch |
27 |
|
| 19562 |
pd |
28 |
$Date: 2002/05/05 22:34:52 $
|
| 1230 |
leisch |
29 |
|
| 19562 |
pd |
30 |
$Author: pd $
|
| 1230 |
leisch |
31 |
|
|
|
32 |
==============================================================================*/
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
/* -------------------------------- Imports --------------------------------- */
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
/*==============================================================================
|
|
|
39 |
Interface of class Value
|
|
|
40 |
==============================================================================*/
|
|
|
41 |
|
|
|
42 |
/*------------------------------------------------------------------------------
|
|
|
43 |
CLASS: Value
|
|
|
44 |
SUPER: Object
|
|
|
45 |
CONF. TO:
|
|
|
46 |
PURPOSE:
|
|
|
47 |
NOTES:
|
|
|
48 |
|
|
|
49 |
HISTORY: 98-05-08: created
|
|
|
50 |
------------------------------------------------------------------------------*/
|
|
|
51 |
public class Value extends Object
|
|
|
52 |
{
|
|
|
53 |
/*============================================================================
|
|
|
54 |
Public methods
|
|
|
55 |
============================================================================*/
|
|
|
56 |
|
|
|
57 |
/*----------------------------------------------------------------------------
|
|
|
58 |
INTERFACE:
|
|
|
59 |
PURPOSE: default constructor
|
|
|
60 |
|
|
|
61 |
NOTES:
|
|
|
62 |
|
|
|
63 |
PARAMS:
|
|
|
64 |
THROWS:
|
|
|
65 |
RETURNS: void
|
|
|
66 |
|
|
|
67 |
HISTORY: 98-05-08: created
|
|
|
68 |
----------------------------------------------------------------------------*/
|
|
|
69 |
public Value (String key,String value)
|
|
|
70 |
{
|
|
|
71 |
iKey = key;
|
|
|
72 |
iValue = value;
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
/*----------------------------------------------------------------------------
|
|
|
77 |
INTERFACE:
|
|
|
78 |
PURPOSE:
|
|
|
79 |
|
|
|
80 |
NOTES:
|
|
|
81 |
|
|
|
82 |
PARAMS:
|
|
|
83 |
THROWS:
|
|
|
84 |
RETURNS: void
|
|
|
85 |
|
|
|
86 |
HISTORY: 98-05-08: created
|
|
|
87 |
----------------------------------------------------------------------------*/
|
|
|
88 |
public void addToValue (String addition)
|
|
|
89 |
{
|
|
|
90 |
iValue += addition;
|
|
|
91 |
|
|
|
92 |
return;
|
|
|
93 |
}
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
/*----------------------------------------------------------------------------
|
|
|
97 |
INTERFACE:
|
|
|
98 |
PURPOSE:
|
|
|
99 |
|
|
|
100 |
NOTES:
|
|
|
101 |
|
|
|
102 |
PARAMS:
|
|
|
103 |
THROWS:
|
|
|
104 |
RETURNS: void
|
|
|
105 |
|
|
|
106 |
HISTORY: 98-05-08: created
|
|
|
107 |
----------------------------------------------------------------------------*/
|
|
|
108 |
public String getKey ()
|
|
|
109 |
{
|
|
|
110 |
return iKey;
|
|
|
111 |
}
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
/*----------------------------------------------------------------------------
|
|
|
115 |
INTERFACE:
|
|
|
116 |
PURPOSE:
|
|
|
117 |
|
|
|
118 |
NOTES:
|
|
|
119 |
|
|
|
120 |
PARAMS:
|
|
|
121 |
THROWS:
|
|
|
122 |
RETURNS: void
|
|
|
123 |
|
|
|
124 |
HISTORY: 98-05-08: created
|
|
|
125 |
----------------------------------------------------------------------------*/
|
|
|
126 |
public String getValue ()
|
|
|
127 |
{
|
|
|
128 |
return iValue;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
|
|
|
132 |
/*============================================================================
|
|
|
133 |
Protected methods
|
|
|
134 |
============================================================================*/
|
|
|
135 |
|
|
|
136 |
/*============================================================================
|
|
|
137 |
Private methods
|
|
|
138 |
============================================================================*/
|
|
|
139 |
|
|
|
140 |
/*============================================================================
|
|
|
141 |
Instance Variables
|
|
|
142 |
============================================================================*/
|
|
|
143 |
|
|
|
144 |
private String iKey;
|
|
|
145 |
private String iValue;
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
/*============================================================================
|
|
|
149 |
Static Data
|
|
|
150 |
============================================================================*/
|
|
|
151 |
}
|
|
|
152 |
|
|
|
153 |
|
|
|
154 |
/*==============================================================================
|
|
|
155 |
|
|
|
156 |
HISTORY:
|
|
|
157 |
|
|
|
158 |
$Log: Value.java,v $
|
| 19562 |
pd |
159 |
Revision 1.4 2002/05/05 22:34:52 pd
|
|
|
160 |
.subset/.subset2, perfomace tweak in [[.data.frame
|
|
|
161 |
|
| 5458 |
ripley |
162 |
Revision 1.3 1999/08/10 09:56:03 ripley
|
|
|
163 |
change FSF address in copyrights
|
|
|
164 |
add some copyrights in src/gnome and elsewhere
|
|
|
165 |
|
| 3765 |
leisch |
166 |
Revision 1.2 1999/03/04 17:15:19 leisch
|
|
|
167 |
various bugfixes
|
| 1230 |
leisch |
168 |
|
| 3765 |
leisch |
169 |
Revision 1.1.4.1 1999/03/02 15:19:59 leisch
|
|
|
170 |
search used only kewords, no titles
|
|
|
171 |
|
| 1230 |
leisch |
172 |
Revision 1.1 1998/05/10 02:44:50 baier
|
|
|
173 |
Initial revision
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
==============================================================================*/
|
|
|
177 |
|
|
|
178 |
|
|
|
179 |
// Local Variables:
|
|
|
180 |
// mode: Java
|
|
|
181 |
// mode: font-lock
|
|
|
182 |
// End:
|