View Javadoc
1   /**
2    * Copyright 2004-2014 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.student.contract.model;
17  
18  import java.io.Serializable;
19  import java.util.Date;
20  import java.util.LinkedHashMap;
21  import java.util.Map;
22  
23  /**
24   * Models the state object in the spreadsheet
25   * @author nwright
26   */
27  public class State implements Serializable {
28  
29      public static final String DEFAULT = "(default)";
30      public static final String GROUPING = "Grouping";
31  
32      public State() {
33          super();
34      }
35      private String xmlTypeState;
36  
37      /**
38       * Get the value of xmlTypeState
39       *
40       * @return the value of xmlTypeState
41       */
42      public String getXmlTypeState() {
43          return xmlTypeState;
44      }
45  
46      /**
47       * Set the value of xmlTypeState
48       *
49       * @param objectType new value of xmlTypeState
50       */
51      public void setXmlTypeState(String xmlTypeState) {
52          this.xmlTypeState = xmlTypeState;
53      }
54      private String xmlObject;
55  
56      /**
57       * Get the value of xmlObject
58       *
59       * @return the value of xmlObject
60       */
61      public String getXmlObject() {
62          return xmlObject;
63      }
64  
65      /**
66       * Set the value of xmlObject
67       *
68       * @param xmlObject new value of xmlObject
69       */
70      public void setXmlObject(String xmlObject) {
71          this.xmlObject = xmlObject;
72      }
73      private String xmlObjectDesc;
74  
75      /**
76       * Get the value of xmlObjectDesc
77       *
78       * @return the value of xmlObjectDesc
79       */
80      public String getXmlObjectDesc() {
81          return xmlObjectDesc;
82      }
83  
84      /**
85       * Set the value of xmlObjectDesc
86       *
87       * @param xmlObjectDesc new value of xmlObjectDesc
88       */
89      public void setXmlObjectDesc(String xmlObjectDesc) {
90          this.xmlObjectDesc = xmlObjectDesc;
91      }
92      private boolean include;
93  
94      /**
95       * Get the value of include
96       *
97       * @return the value of include
98       */
99      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 }