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  import org.kuali.rice.krad.datadictionary.parse.BeanTags;
22  
23  /**
24   * KRAD version of KeyValue to enable use in schema
25   */
26  @BeanTags({@BeanTag(name = "keyValuePair-bean", parent = "Uif-KeyLabelPair"),
27          @BeanTag(name = "keyLabelPair-bean", 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      @Override
40      @BeanTagAttribute(name = "key")
41      public String getKey() {
42          return super.getKey();
43      }
44  
45      @Override
46      @BeanTagAttribute(name = "value")
47      public String getValue() {
48          return super.getValue();
49      }
50  
51      public void setKey(String key) {
52          this.key = key;
53      }
54  
55      public void setValue(String value) {
56          this.value = value;
57      }
58  }