View Javadoc

1   /*
2    * Copyright 2005-2007 The Kuali Foundation
3    * 
4    * 
5    * Licensed under the Educational Community License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    * 
9    * http://www.opensource.org/licenses/ecl2.php
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.kuali.rice.kew.engine.node;
18  
19  import org.apache.commons.collections.KeyValue;
20  import java.io.Serializable;
21  
22  import javax.persistence.Column;
23  import javax.persistence.MappedSuperclass;
24  
25  /**
26   * A simple object representing a key/value pair.
27   * 
28   * @author Kuali Rice Team (rice.collab@kuali.org)
29   */
30  @MappedSuperclass
31  public class KeyValuePair implements KeyValue, Serializable {
32  
33  	private static final long serialVersionUID = -3819394562029060331L;
34  
35  	@Column(name="KEY_CD")
36      protected String key;
37      @Column(name="VAL")
38      protected String value;
39  
40      public KeyValuePair() {}
41  
42      public KeyValuePair(String key, String value) {
43          this.key = key;
44          this.value = value;
45      }
46  
47      public void setKey(String key) {
48          this.key = key;
49      }
50  
51      public String getKey() {
52          return key;
53      }
54  
55      public void setValue(String value) {
56          this.value = value;
57      }
58  
59      public String getValue() {
60          return value;
61      }
62  }