001/**
002 * Copyright 2004-2014 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.student.contract.model;
017
018import java.io.Serializable;
019import java.util.List;
020
021/**
022 * Models a single dictionary entry
023 * @author nwright
024 */
025public class Dictionary implements Serializable, Cloneable {
026
027    public Dictionary() {
028        super();
029    }
030    private String id;
031
032    /**
033     * Get the value of id
034     *
035     * @return the value of id
036     */
037    public String getId() {
038        return id;
039    }
040
041    /**
042     * Set the value of id
043     *
044     * @param id new value of id
045     */
046    public void setId(String id) {
047        this.id = id;
048    }
049    private String type;
050
051    /**
052     * Get the value of type
053     *
054     * @return the value of type
055     */
056    public String getType() {
057        return type;
058    }
059
060    /**
061     * Set the value of type
062     *
063     * @param type new value of type
064     */
065    public void setType(String type) {
066        this.type = type;
067    }
068    private String state;
069
070    /**
071     * Get the value of state
072     *
073     * @return the value of state
074     */
075    public String getState() {
076        return state;
077    }
078
079    /**
080     * Set the value of state
081     *
082     * @param state new value of state
083     */
084    public void setState(String state) {
085        this.state = state;
086    }
087    private Dictionary parent;
088
089    public Dictionary getParent() {
090        return parent;
091    }
092
093    public void setParent(Dictionary parent) {
094        this.parent = parent;
095    }
096    private String subType;
097
098    /**
099     * Get the value of subType
100     *
101     * @return the value of subType
102     */
103    public String getSubType() {
104        return subType;
105    }
106
107    /**
108     * Set the value of subType
109     *
110     * @param subType new value of subType
111     */
112    public void setSubType(String subType) {
113        this.subType = subType;
114    }
115    private String subState;
116
117    /**
118     * Get the value of subState
119     *
120     * @return the value of subState
121     */
122    public String getSubState() {
123        return subState;
124    }
125
126    /**
127     * Set the value of subState
128     *
129     * @param subState new value of subState
130     */
131    public void setSubState(String subState) {
132        this.subState = subState;
133    }
134    private String xmlObject;
135
136    /**
137     * Get the value of xmlObject
138     *
139     * @return the value of xmlObject
140     */
141    public String getXmlObject() {
142        return xmlObject;
143    }
144
145    /**
146     * Set the value of xmlObject
147     *
148     * @param xmlObject new value of xmlObject
149     */
150    public void setXmlObject(String xmlObject) {
151        this.xmlObject = xmlObject;
152    }
153    private String shortName;
154
155    /**
156     * Get the value of shortName
157     *
158     * @return the value of shortName
159     */
160    public String getShortName() {
161        return shortName;
162    }
163
164    /**
165     * Set the value of shortName
166     *
167     * @param shortName new value of shortName
168     */
169    public void setShortName(String shortName) {
170        this.shortName = shortName;
171    }
172    private String primitive;
173
174    /**
175     * Get the value of primitive
176     *
177     * @return the value of primitive
178     */
179    public String getPrimitive() {
180        return primitive;
181    }
182
183    /**
184     * Set the value of primitive
185     *
186     * @param primitive new value of primitive
187     */
188    public void setPrimitive(String primitive) {
189        this.primitive = primitive;
190    }
191    private String baseConstraintDescription;
192
193    /**
194     * Get the value of baseConstraintDescription
195     *
196     * @return the value of baseConstraintDescription
197     */
198    public String getBaseConstraintDescription() {
199        return baseConstraintDescription;
200    }
201
202    /**
203     * Set the value of baseConstraintDescription
204     *
205     * @param baseConstraintDescription new value of baseConstraintDescription
206     */
207    public void setBaseConstraintDescription(String baseConstraintDescription) {
208        this.baseConstraintDescription = baseConstraintDescription;
209    }
210    private String name;
211
212    /**
213     * Get the value of name
214     *
215     * @return the value of name
216     */
217    public String getName() {
218        return name;
219    }
220
221    /**
222     * Set the value of name
223     *
224     * @param name new value of name
225     */
226    public void setName(String name) {
227        this.name = name;
228    }
229    public String desc;
230
231    /**
232     * Get the value of desc
233     *
234     * @return the value of desc
235     */
236    public String getDesc() {
237        return desc;
238    }
239
240    /**
241     * Set the value of desc
242     *
243     * @param desc new value of desc
244     */
245    public void setDesc(String desc) {
246        this.desc = desc;
247    }
248    private boolean selector;
249
250    /**
251     * Get the value of selector
252     *
253     * @return the value of selector
254     */
255    public boolean isSelector() {
256        return selector;
257    }
258
259    /**
260     * Set the value of selector
261     *
262     * @param selector new value of selector
263     */
264    public void setSelector(boolean selector) {
265        this.selector = selector;
266    }
267    private boolean dynamic;
268
269    public boolean isDynamic() {
270        return dynamic;
271    }
272
273    public void setDynamic(boolean dynamic) {
274        this.dynamic = dynamic;
275    }
276    private String comments;
277
278    /**
279     * Get the value of comments
280     *
281     * @return the value of comments
282     */
283    public String getComments() {
284        return comments;
285    }
286
287    /**
288     * Set the value of comments
289     *
290     * @param comments new value of comments
291     */
292    public void setComments(String comments) {
293        this.comments = comments;
294    }
295    protected List<String> additionalConstraintIds;
296
297    /**
298     * Get the value of additionalConstraintIds
299     *
300     * @return the value of additionalConstraintIds
301     */
302    public List<String> getAdditionalConstraintIds() {
303        return additionalConstraintIds;
304    }
305
306    /**
307     * Set the value of additionalConstraintIds
308     *
309     * @param additionalConstraintIds new value of additionalConstraintIds
310     */
311    public void setAdditionalConstraintIds(List<String> additionalConstraintIds) {
312        this.additionalConstraintIds = additionalConstraintIds;
313    }
314    protected String additionalConstraintDescription;
315
316    /**
317     * Get the value of additionalConstraintDescription
318     *
319     * @return the value of additionalConstraintDescription
320     */
321    public String getAdditionalConstraintDescription() {
322        return additionalConstraintDescription;
323    }
324
325    /**
326     * Set the value of additionalConstraintDescription
327     *
328     * @param additionalConstraintDescription new value of additionalConstraintDescription
329     */
330    public void setAdditionalConstraintDescription(
331            String additionalConstraintDescription) {
332        this.additionalConstraintDescription = additionalConstraintDescription;
333    }
334    protected String combinedConstraintDescription;
335
336    /**
337     * Get the value of combinedConstraintDescription
338     *
339     * @return the value of combinedConstraintDescription
340     */
341    public String getCombinedConstraintDescription() {
342        return combinedConstraintDescription;
343    }
344
345    /**
346     * Set the value of combinedConstraintDescription
347     *
348     * @param combinedConstraintDescription new value of combinedConstraintDescription
349     */
350    public void setCombinedConstraintDescription(
351            String combinedConstraintDescription) {
352        this.combinedConstraintDescription = combinedConstraintDescription;
353    }
354    private Constraint inlineConstraint;
355
356    /**
357     * Get the value of inlineConstraint
358     *
359     * @return the value of inlineConstraint
360     */
361    public Constraint getInlineConstraint() {
362        return inlineConstraint;
363    }
364
365    /**
366     * Set the value of inlineConstraint
367     *
368     * @param inlineConstraint new value of inlineConstraint
369     */
370    public void setInlineConstraint(Constraint inlineConstraint) {
371        this.inlineConstraint = inlineConstraint;
372    }
373
374    @Override
375    public Object clone()
376            throws CloneNotSupportedException {
377        return super.clone();
378    }
379}