View Javadoc
1   /**
2    * Copyright 2005-2016 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.krad.uif.util;
17  
18  import org.kuali.rice.core.api.util.AbstractKeyValue;
19  import org.kuali.rice.krad.datadictionary.parse.BeanTag;
20  import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
21  
22  /**
23   * Extension of key value for use within the UIF.
24   *
25   * @author Kuali Rice Team (rice.collab@kuali.org)
26   */
27  @BeanTag(name = "keyValuePair", parent = "Uif-KeyLabelPair")
28  public class UifKeyValue extends AbstractKeyValue {
29      private static final long serialVersionUID = 1176799455504861488L;
30  
31      public UifKeyValue() {
32          super();
33      }
34  
35      public UifKeyValue(String key, String value) {
36          super(key, value);
37      }
38  
39      /**
40       * {@inheritDoc}
41       */
42      @Override
43      @BeanTagAttribute(name = "key")
44      public String getKey() {
45          return super.getKey();
46      }
47  
48      /**
49       * {@inheritDoc}
50       */
51      public void setKey(String key) {
52          this.key = key;
53      }
54  
55      /**
56       * {@inheritDoc}
57       */
58      @Override
59      @BeanTagAttribute(name = "value")
60      public String getValue() {
61          return super.getValue();
62      }
63  
64      /**
65       * {@inheritDoc}
66       */
67      public void setValue(String value) {
68          this.value = value;
69      }
70  }