1 /**
2 * Copyright 2010 The Kuali Foundation Licensed under the
3 * Educational Community License, Version 2.0 (the "License"); you may
4 * not use this file except in compliance with the License. You may
5 * obtain a copy of the License at
6 *
7 * http://www.osedu.org/licenses/ECL-2.0
8 *
9 * Unless required by applicable law or agreed to in writing,
10 * software distributed under the License is distributed on an "AS IS"
11 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12 * or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15
16 //
17 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
18 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
19 // Any modifications to this file will be lost upon recompilation of the source schema.
20 // Generated on: 2008.10.21 at 02:14:18 PM PDT
21 //
22
23
24 package org.kuali.student.r1.common.dictionary.old.dto;
25
26 import java.io.Serializable;
27 import java.util.HashMap;
28 import java.util.Map;
29
30 import javax.xml.bind.annotation.XmlAccessType;
31 import javax.xml.bind.annotation.XmlAccessorType;
32 import javax.xml.bind.annotation.XmlAttribute;
33 import javax.xml.bind.annotation.XmlElement;
34
35
36 /**
37 * <p>Java class for anonymous complex type.
38 *
39 * <p>The following schema fragment specifies the expected content contained within this class.
40 *
41 * <pre>
42 * <complexType>
43 * <complexContent>
44 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
45 * <sequence>
46 * <element name="dataType" type="{http://www.w3.org/2001/XMLSchema}string"/>
47 * <element name="minLength" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
48 * <element name="maxLength" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
49 * <element name="validChars" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
50 * <element name="invalidChars" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
51 * <element name="minOccurs" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
52 * <element name="maxOccurs" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
53 * <element ref="{http://www.dto.dictionary.student.kuali.org}enum" minOccurs="0"/>
54 * </sequence>
55 * </restriction>
56 * </complexContent>
57 * </complexType>
58 * </pre>
59 *
60 *
61 */
62 //@XmlAccessorType(XmlAccessType.FIELD)
63 //@XmlType(name = "", propOrder = {
64 // "name",
65 // "desc",
66 // "dataType",
67 // "minValue",
68 // "maxValue",
69 // "minLength",
70 // "maxLength",
71 // "validChars",
72 // "invalidChars",
73 // "readOnly",
74 // "_enum"
75 //})
76 @Deprecated
77 @XmlAccessorType(XmlAccessType.FIELD)
78 public class FieldDescriptor implements Serializable {
79
80 private static final long serialVersionUID = 1L;
81
82 @XmlAttribute
83 protected String id;
84
85 @XmlElement(required = true)
86 protected String name;
87
88 @XmlElement(required = true)
89 protected String desc;
90
91 @XmlElement
92 protected boolean readOnly;
93
94 @XmlElement(required = true)
95 protected String dataType;
96
97 @XmlElement
98 protected SearchSelector search;
99
100 @XmlElement
101 protected ObjectStructure objectStructure;
102
103 @XmlElement
104 protected String objectStructureRef;
105
106
107 /**
108 * Gets the value of the dataType property.
109 *
110 * @return
111 * possible object is
112 * {@link String }
113 *
114 */
115 public String getDataType() {
116 return dataType;
117 }
118
119 /**
120 * Sets the value of the dataType property.
121 *
122 * @param value
123 * allowed object is
124 * {@link String }
125 *
126 */
127 public void setDataType(String value) {
128 this.dataType = value;
129 }
130
131 /**
132 * @return the name
133 */
134 public String getName() {
135 return name;
136 }
137
138 /**
139 * @param name the name to set
140 */
141 public void setName(String name) {
142 this.name = name;
143 }
144
145 /**
146 * @return the desc
147 */
148 public String getDesc() {
149 return desc;
150 }
151
152 /**
153 * @param desc the desc to set
154 */
155 public void setDesc(String desc) {
156 this.desc = desc;
157 }
158
159 /**
160 * @return the readOnly
161 */
162 public boolean isReadOnly() {
163 return readOnly;
164 }
165
166 /**
167 * @param readOnly the readOnly to set
168 */
169 public void setReadOnly(boolean readOnly) {
170 this.readOnly = readOnly;
171 }
172
173 /**
174 * @return the search
175 */
176 public SearchSelector getSearch() {
177 return search;
178 }
179
180 /**
181 * @param search the search to set
182 */
183 public void setSearch(SearchSelector search) {
184 this.search = search;
185 }
186
187 /**
188 * @return the id
189 */
190 public String getId() {
191 return id;
192 }
193
194 /**
195 * @param id the id to set
196 */
197 public void setId(String id) {
198 this.id = id;
199 }
200
201 /**
202 * @return the objectStructure
203 */
204 public ObjectStructure getObjectStructure() {
205 return objectStructure;
206 }
207
208 /**
209 * @param objectStructure the objectStructure to set
210 */
211 public void setObjectStructure(ObjectStructure objectStructure) {
212 this.objectStructure = objectStructure;
213 }
214
215 /**
216 * @return the objectStructureRef
217 */
218 public String getObjectStructureRef() {
219 return objectStructureRef;
220 }
221
222 /**
223 * @param objectStructureRef the objectStructureRef to set
224 */
225 public void setObjectStructureRef(String objectStructureRef) {
226 this.objectStructureRef = objectStructureRef;
227 }
228
229 public Map<String, Object> toMap(){
230 Map<String, Object> fieldDescMap = new HashMap<String, Object>();
231 fieldDescMap.put("dataType", dataType);
232 return fieldDescMap;
233 }
234
235
236 }