Lines 85-90
Link Here
|
85 |
|
85 |
|
86 |
private static final String ELEMENT_TYPE = "type"; |
86 |
private static final String ELEMENT_TYPE = "type"; |
87 |
|
87 |
|
|
|
88 |
private static final String ELEMENT_TYPE_DESC = "type_desc"; |
89 |
|
90 |
private static final String ELEMENT_ENTER_BUG = "enter_bug"; |
91 |
|
88 |
private static final String ELEMENT_REQUESTABLE = "requestable"; |
92 |
private static final String ELEMENT_REQUESTABLE = "requestable"; |
89 |
|
93 |
|
90 |
private static final String ELEMENT_SPECIFICALLY_REQUESTABLE = "specifically_requestable"; |
94 |
private static final String ELEMENT_SPECIFICALLY_REQUESTABLE = "specifically_requestable"; |
Lines 159-164
Link Here
|
159 |
|
163 |
|
160 |
private String currentMultiplicable; |
164 |
private String currentMultiplicable; |
161 |
|
165 |
|
|
|
166 |
private String currentTypeDesc = ""; |
167 |
|
168 |
private String currentEnterBug = ""; |
169 |
|
162 |
private StringBuffer characters = new StringBuffer(); |
170 |
private StringBuffer characters = new StringBuffer(); |
163 |
|
171 |
|
164 |
private String about; |
172 |
private String about; |
Lines 242-247
Link Here
|
242 |
} else if (localName.equals(ELEMENT_FIELD)) { |
250 |
} else if (localName.equals(ELEMENT_FIELD)) { |
243 |
state = state | IN_FIELD; |
251 |
state = state | IN_FIELD; |
244 |
parseResource(attributes); |
252 |
parseResource(attributes); |
|
|
253 |
currentName = ""; |
254 |
currentDescription = ""; |
255 |
currentType = ""; |
256 |
currentTypeDesc = ""; |
257 |
currentEnterBug = ""; |
245 |
} else if (localName.equals(ELEMENT_FLAG_TYPES)) { |
258 |
} else if (localName.equals(ELEMENT_FLAG_TYPES)) { |
246 |
state = state | IN_FLAG_TYPES; |
259 |
state = state | IN_FLAG_TYPES; |
247 |
} else if (localName.equals(ELEMENT_FLAG_TYPE)) { |
260 |
} else if (localName.equals(ELEMENT_FLAG_TYPE)) { |
Lines 366-372
Link Here
|
366 |
state = state & ~IN_FIELDS; |
379 |
state = state & ~IN_FIELDS; |
367 |
} else if (localName.equals(ELEMENT_FIELD)) { |
380 |
} else if (localName.equals(ELEMENT_FIELD)) { |
368 |
if (currentName.startsWith(BugzillaCustomField.CUSTOM_FIELD_PREFIX)) { |
381 |
if (currentName.startsWith(BugzillaCustomField.CUSTOM_FIELD_PREFIX)) { |
369 |
BugzillaCustomField newField = new BugzillaCustomField(currentDescription, currentName); |
382 |
BugzillaCustomField newField = new BugzillaCustomField(currentDescription, currentName, currentType, |
|
|
383 |
currentTypeDesc, currentEnterBug); |
370 |
List<String> customOptionList = customOption.get(currentName); |
384 |
List<String> customOptionList = customOption.get(currentName); |
371 |
if (customOptionList != null && !customOptionList.isEmpty()) { |
385 |
if (customOptionList != null && !customOptionList.isEmpty()) { |
372 |
newField.setOptions(customOptionList); |
386 |
newField.setOptions(customOptionList); |
Lines 378-383
Link Here
|
378 |
currentDescription = characters.toString(); |
392 |
currentDescription = characters.toString(); |
379 |
} else if (localName.equals(ELEMENT_TYPE)) { |
393 |
} else if (localName.equals(ELEMENT_TYPE)) { |
380 |
currentType = characters.toString(); |
394 |
currentType = characters.toString(); |
|
|
395 |
} else if (localName.equals(ELEMENT_TYPE_DESC)) { |
396 |
currentTypeDesc = characters.toString(); |
397 |
} else if (localName.equals(ELEMENT_ENTER_BUG)) { |
398 |
currentEnterBug = characters.toString(); |
381 |
} else if (localName.equals(ELEMENT_REQUESTABLE)) { |
399 |
} else if (localName.equals(ELEMENT_REQUESTABLE)) { |
382 |
currentRequestable = characters.toString(); |
400 |
currentRequestable = characters.toString(); |
383 |
} else if (localName.equals(ELEMENT_SPECIFICALLY_REQUESTABLE)) { |
401 |
} else if (localName.equals(ELEMENT_SPECIFICALLY_REQUESTABLE)) { |