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.mock;
017
018import java.io.Serializable;
019import java.util.Map;
020
021/**
022 * Data object class that has generic data map.
023 *
024 * @author Kuali Rice Team (rice.collab@kuali.org)
025 */
026public class DynaDataObject implements Serializable {
027    private static final long serialVersionUID = 2083672967298199749L;
028
029    private Map<String, Object> data;
030    private Map<String, Boolean> booleanData;
031
032    /**
033     * Default constructor.
034     */
035    public DynaDataObject() {
036    }
037
038    /**
039     * Map containing non-boolean data for the view.
040     *
041     * @return map where key is property name and value is the property value
042     */
043    public Map<String, Object> getData() {
044        return data;
045    }
046
047    /**
048     * @see DynaDataObject#getData()
049     */
050    public void setData(Map<String, Object> data) {
051        this.data = data;
052    }
053
054    /**
055     * Map containing boolean data for the view.
056     *
057     * @return map where key is property name and value is the property value
058     */
059    public Map<String, Boolean> getBooleanData() {
060        return booleanData;
061    }
062
063    /**
064     * @see DynaDataObject#getBooleanData()
065     */
066    public void setBooleanData(Map<String, Boolean> booleanData) {
067        this.booleanData = booleanData;
068    }
069}