The R Project SVN R

Rev

Rev 5458 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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