001/**
002 * Copyright 2005-2018 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.krad.uif.util;
017
018import org.kuali.rice.core.api.util.AbstractKeyValue;
019import org.kuali.rice.krad.datadictionary.parse.BeanTag;
020import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
021
022/**
023 * Extension of key value for use within the UIF.
024 *
025 * @author Kuali Rice Team (rice.collab@kuali.org)
026 */
027@BeanTag(name = "keyValuePair", parent = "Uif-KeyLabelPair")
028public class UifKeyValue extends AbstractKeyValue {
029    private static final long serialVersionUID = 1176799455504861488L;
030
031    public UifKeyValue() {
032        super();
033    }
034
035    public UifKeyValue(String key, String value) {
036        super(key, value);
037    }
038
039    /**
040     * {@inheritDoc}
041     */
042    @Override
043    @BeanTagAttribute(name = "key")
044    public String getKey() {
045        return super.getKey();
046    }
047
048    /**
049     * {@inheritDoc}
050     */
051    public void setKey(String key) {
052        this.key = key;
053    }
054
055    /**
056     * {@inheritDoc}
057     */
058    @Override
059    @BeanTagAttribute(name = "value")
060    public String getValue() {
061        return super.getValue();
062    }
063
064    /**
065     * {@inheritDoc}
066     */
067    public void setValue(String value) {
068        this.value = value;
069    }
070}