001 /* 002 * Copyright 2009 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.osedu.org/licenses/ECL-2.0 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 */ 016 package org.kuali.student.contract.model; 017 018 import java.io.Serializable; 019 import java.util.Date; 020 import java.util.LinkedHashMap; 021 import java.util.Map; 022 023 /** 024 * Models the state object in the spreadsheet 025 * @author nwright 026 */ 027 public class State implements Serializable { 028 029 public static final String DEFAULT = "(default)"; 030 public static final String GROUPING = "Grouping"; 031 032 public State() { 033 super(); 034 } 035 private String xmlTypeState; 036 037 /** 038 * Get the value of xmlTypeState 039 * 040 * @return the value of xmlTypeState 041 */ 042 public String getXmlTypeState() { 043 return xmlTypeState; 044 } 045 046 /** 047 * Set the value of xmlTypeState 048 * 049 * @param objectType new value of xmlTypeState 050 */ 051 public void setXmlTypeState(String xmlTypeState) { 052 this.xmlTypeState = xmlTypeState; 053 } 054 private String xmlObject; 055 056 /** 057 * Get the value of xmlObject 058 * 059 * @return the value of xmlObject 060 */ 061 public String getXmlObject() { 062 return xmlObject; 063 } 064 065 /** 066 * Set the value of xmlObject 067 * 068 * @param xmlObject new value of xmlObject 069 */ 070 public void setXmlObject(String xmlObject) { 071 this.xmlObject = xmlObject; 072 } 073 private String xmlObjectDesc; 074 075 /** 076 * Get the value of xmlObjectDesc 077 * 078 * @return the value of xmlObjectDesc 079 */ 080 public String getXmlObjectDesc() { 081 return xmlObjectDesc; 082 } 083 084 /** 085 * Set the value of xmlObjectDesc 086 * 087 * @param xmlObjectDesc new value of xmlObjectDesc 088 */ 089 public void setXmlObjectDesc(String xmlObjectDesc) { 090 this.xmlObjectDesc = xmlObjectDesc; 091 } 092 private boolean include; 093 094 /** 095 * Get the value of include 096 * 097 * @return the value of include 098 */ 099 public boolean getInclude() { 100 return include; 101 } 102 103 /** 104 * Set the value of include 105 * 106 * @param include new value of include 107 */ 108 public void setInclude(boolean include) { 109 this.include = include; 110 } 111 private String name; 112 113 /** 114 * Get the value of name 115 * 116 * @return the value of name 117 */ 118 public String getName() { 119 return name; 120 } 121 122 /** 123 * Set the value of name 124 * 125 * @param name new value of name 126 */ 127 public void setName(String name) { 128 this.name = name; 129 } 130 private String desc; 131 132 /** 133 * Get the value of desc 134 * 135 * @return the value of desc 136 */ 137 public String getDesc() { 138 return desc; 139 } 140 141 /** 142 * Set the value of desc 143 * 144 * @param desc new value of desc 145 */ 146 public void setDesc(String desc) { 147 this.desc = desc; 148 } 149 private String status; 150 151 /** 152 * Get the value of status 153 * 154 * @return the value of status 155 */ 156 public String getStatus() { 157 return status; 158 } 159 160 /** 161 * Set the value of status 162 * 163 * @param status new value of status 164 */ 165 public void setStatus(String status) { 166 this.status = status; 167 } 168 private String comments; 169 170 /** 171 * Get the value of comments 172 * 173 * @return the value of comments 174 */ 175 public String getComments() { 176 return comments; 177 } 178 179 /** 180 * Set the value of comments 181 * 182 * @param comments new value of comments 183 */ 184 public void setComments(String comments) { 185 this.comments = comments; 186 } 187 private Map<String, String> attributes; 188 189 public Map<String, String> getAttributes() { 190 if (attributes == null) { 191 attributes = new LinkedHashMap(); 192 } 193 return attributes; 194 } 195 196 public void setAttributes(Map<String, String> attributes) { 197 this.attributes = attributes; 198 } 199 private Date effectiveDate; 200 201 public Date getEffectiveDate() { 202 return effectiveDate; 203 } 204 205 public void setEffectiveDate(Date effectiveDate) { 206 this.effectiveDate = effectiveDate; 207 } 208 private Date expirationDate; 209 210 public Date getExpirationDate() { 211 return expirationDate; 212 } 213 214 public void setExpirationDate(Date expirationDate) { 215 this.expirationDate = expirationDate; 216 } 217 private String stateKey; 218 219 public String getStateKey() { 220 return stateKey; 221 } 222 223 public void setStateKey(String stateKey) { 224 this.stateKey = stateKey; 225 } 226 }