View Javadoc

1   /*
2    * UML2MMBase module.
3    *
4    * The contents of this file are subject to the Mozilla Public License
5    * Version 1.0 (the "License"); you may not use this file except in
6    * compliance with the License. You may obtain a copy of the License at
7    * http://www.mozilla.org/MPL/
8    *
9    * Software distributed under the License is distributed on an "AS IS"
10   * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
11   * License for the specific language governing rights and limitations
12   * under the License.
13   */
14  
15  package com.finalist.mmbase.uml;
16  
17  /***
18   * This class contains the information about the options in an optionlist.
19   * @author Kors van Beem
20   * @version $Revision: 1.3 $, $Date: 2004/10/23 08:54:39 $
21   */
22  public class MMBaseOptionVo {
23  
24     private String key;
25     private String value;
26  
27     /***
28      *
29      * @param key The identifier for this option.
30      * @param value The value to be displayed in the optionList.
31      */
32     public MMBaseOptionVo(String key, String value) {
33        this.key = key;
34        this.value = value;
35     }
36  
37     /***
38      *
39      * @return The key value.
40      */
41     public String getKey() {
42        return key;
43     }
44  
45     /***
46      *
47      * @param key The key value to set.
48      */
49     public void setKey(String key) {
50        this.key = key;
51     }
52  
53     /***
54      *
55      * @return the display value to return.
56      */
57     public String getValue() {
58        return value;
59     }
60  
61     /***
62      *
63      * @param value The display value to be set.
64      */
65     public void setValue(String value) {
66        this.value = value;
67     }
68  }