Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
FieldDescriptor |
|
| 1.0;1 |
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.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 | @XmlAccessorType(XmlAccessType.FIELD) | |
77 | 0 | public class FieldDescriptor implements Serializable { |
78 | ||
79 | private static final long serialVersionUID = 1L; | |
80 | ||
81 | @XmlAttribute | |
82 | protected String id; | |
83 | ||
84 | @XmlElement(required = true) | |
85 | protected String name; | |
86 | ||
87 | @XmlElement(required = true) | |
88 | protected String desc; | |
89 | ||
90 | @XmlElement | |
91 | protected boolean readOnly; | |
92 | ||
93 | @XmlElement(required = true) | |
94 | protected String dataType; | |
95 | ||
96 | @XmlElement | |
97 | protected SearchSelector search; | |
98 | ||
99 | @XmlElement | |
100 | protected ObjectStructure objectStructure; | |
101 | ||
102 | @XmlElement | |
103 | protected String objectStructureRef; | |
104 | ||
105 | ||
106 | /** | |
107 | * Gets the value of the dataType property. | |
108 | * | |
109 | * @return | |
110 | * possible object is | |
111 | * {@link String } | |
112 | * | |
113 | */ | |
114 | public String getDataType() { | |
115 | 0 | return dataType; |
116 | } | |
117 | ||
118 | /** | |
119 | * Sets the value of the dataType property. | |
120 | * | |
121 | * @param value | |
122 | * allowed object is | |
123 | * {@link String } | |
124 | * | |
125 | */ | |
126 | public void setDataType(String value) { | |
127 | 0 | this.dataType = value; |
128 | 0 | } |
129 | ||
130 | /** | |
131 | * @return the name | |
132 | */ | |
133 | public String getName() { | |
134 | 0 | return name; |
135 | } | |
136 | ||
137 | /** | |
138 | * @param name the name to set | |
139 | */ | |
140 | public void setName(String name) { | |
141 | 0 | this.name = name; |
142 | 0 | } |
143 | ||
144 | /** | |
145 | * @return the desc | |
146 | */ | |
147 | public String getDesc() { | |
148 | 0 | return desc; |
149 | } | |
150 | ||
151 | /** | |
152 | * @param desc the desc to set | |
153 | */ | |
154 | public void setDesc(String desc) { | |
155 | 0 | this.desc = desc; |
156 | 0 | } |
157 | ||
158 | /** | |
159 | * @return the readOnly | |
160 | */ | |
161 | public boolean isReadOnly() { | |
162 | 0 | return readOnly; |
163 | } | |
164 | ||
165 | /** | |
166 | * @param readOnly the readOnly to set | |
167 | */ | |
168 | public void setReadOnly(boolean readOnly) { | |
169 | 0 | this.readOnly = readOnly; |
170 | 0 | } |
171 | ||
172 | /** | |
173 | * @return the search | |
174 | */ | |
175 | public SearchSelector getSearch() { | |
176 | 0 | return search; |
177 | } | |
178 | ||
179 | /** | |
180 | * @param search the search to set | |
181 | */ | |
182 | public void setSearch(SearchSelector search) { | |
183 | 0 | this.search = search; |
184 | 0 | } |
185 | ||
186 | /** | |
187 | * @return the id | |
188 | */ | |
189 | public String getId() { | |
190 | 0 | return id; |
191 | } | |
192 | ||
193 | /** | |
194 | * @param id the id to set | |
195 | */ | |
196 | public void setId(String id) { | |
197 | 0 | this.id = id; |
198 | 0 | } |
199 | ||
200 | /** | |
201 | * @return the objectStructure | |
202 | */ | |
203 | public ObjectStructure getObjectStructure() { | |
204 | 0 | return objectStructure; |
205 | } | |
206 | ||
207 | /** | |
208 | * @param objectStructure the objectStructure to set | |
209 | */ | |
210 | public void setObjectStructure(ObjectStructure objectStructure) { | |
211 | 0 | this.objectStructure = objectStructure; |
212 | 0 | } |
213 | ||
214 | /** | |
215 | * @return the objectStructureRef | |
216 | */ | |
217 | public String getObjectStructureRef() { | |
218 | 0 | return objectStructureRef; |
219 | } | |
220 | ||
221 | /** | |
222 | * @param objectStructureRef the objectStructureRef to set | |
223 | */ | |
224 | public void setObjectStructureRef(String objectStructureRef) { | |
225 | 0 | this.objectStructureRef = objectStructureRef; |
226 | 0 | } |
227 | ||
228 | public Map<String, Object> toMap(){ | |
229 | 0 | Map<String, Object> fieldDescMap = new HashMap<String, Object>(); |
230 | 0 | fieldDescMap.put("dataType", dataType); |
231 | 0 | return fieldDescMap; |
232 | } | |
233 | ||
234 | ||
235 | } |