001/** 002 * Copyright 2005-2013 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.krms.tree.node; 017 018import java.io.Serializable; 019import java.util.HashMap; 020import java.util.List; 021import java.util.Map; 022 023/** 024 * @author Kuali Student Team 025 */ 026public class TreeNode implements Serializable { 027 028 private String key; 029 private String data; 030 private boolean compound; 031 private List<Object> listItems; 032 033 public TreeNode(){ 034 } 035 036 public TreeNode(String data){ 037 this.data = data; 038 } 039 040 public String getKey() { 041 return key; 042 } 043 044 public void setKey(String key) { 045 this.key = key; 046 } 047 048 public String getData() { 049 return data; 050 } 051 052 public void setData(String data) { 053 this.data = data; 054 } 055 056 public boolean isCompound() { 057 return compound; 058 } 059 060 public void setCompound(boolean compound) { 061 this.compound = compound; 062 } 063 064 public List<Object> getListItems() { 065 return listItems; 066 } 067 068 public void setListItems(List<Object> listItems) { 069 this.listItems = listItems; 070 } 071 072}