Lines 82-87
Link Here
|
82 |
|
82 |
|
83 |
private static final String ELEMENT_TYPE = "type"; |
83 |
private static final String ELEMENT_TYPE = "type"; |
84 |
|
84 |
|
|
|
85 |
private static final String ELEMENT_TYPE_DESC = "type_desc"; |
86 |
|
87 |
private static final String ELEMENT_ENTER_BUG = "enter_bug"; |
88 |
|
85 |
private static final String ELEMENT_REQUESTABLE = "requestable"; |
89 |
private static final String ELEMENT_REQUESTABLE = "requestable"; |
86 |
|
90 |
|
87 |
private static final String ELEMENT_SPECIFICALLY_REQUESTABLE = "specifically_requestable"; |
91 |
private static final String ELEMENT_SPECIFICALLY_REQUESTABLE = "specifically_requestable"; |
Lines 156-161
Link Here
|
156 |
|
160 |
|
157 |
private String currentMultiplicable; |
161 |
private String currentMultiplicable; |
158 |
|
162 |
|
|
|
163 |
private String currentTypeDesc = ""; |
164 |
|
165 |
private String currentEnterBug = ""; |
166 |
|
159 |
private StringBuffer characters = new StringBuffer(); |
167 |
private StringBuffer characters = new StringBuffer(); |
160 |
|
168 |
|
161 |
private String about; |
169 |
private String about; |
Lines 239-244
Link Here
|
239 |
} else if (localName.equals(ELEMENT_FIELD)) { |
247 |
} else if (localName.equals(ELEMENT_FIELD)) { |
240 |
state = state | IN_FIELD; |
248 |
state = state | IN_FIELD; |
241 |
parseResource(attributes); |
249 |
parseResource(attributes); |
|
|
250 |
currentName = ""; |
251 |
currentDescription = ""; |
252 |
currentType = ""; |
253 |
currentTypeDesc = ""; |
254 |
currentEnterBug = ""; |
242 |
} else if (localName.equals(ELEMENT_FLAG_TYPES)) { |
255 |
} else if (localName.equals(ELEMENT_FLAG_TYPES)) { |
243 |
state = state | IN_FLAG_TYPES; |
256 |
state = state | IN_FLAG_TYPES; |
244 |
} else if (localName.equals(ELEMENT_FLAG_TYPE)) { |
257 |
} else if (localName.equals(ELEMENT_FLAG_TYPE)) { |
Lines 363-369
Link Here
|
363 |
state = state & ~IN_FIELDS; |
376 |
state = state & ~IN_FIELDS; |
364 |
} else if (localName.equals(ELEMENT_FIELD)) { |
377 |
} else if (localName.equals(ELEMENT_FIELD)) { |
365 |
if (currentName.startsWith(BugzillaCustomField.CUSTOM_FIELD_PREFIX)) { |
378 |
if (currentName.startsWith(BugzillaCustomField.CUSTOM_FIELD_PREFIX)) { |
366 |
BugzillaCustomField newField = new BugzillaCustomField(currentDescription, currentName); |
379 |
BugzillaCustomField newField = new BugzillaCustomField(currentDescription, currentName, currentType, |
|
|
380 |
currentTypeDesc, currentEnterBug); |
367 |
List<String> customOptionList = customOption.get(currentName); |
381 |
List<String> customOptionList = customOption.get(currentName); |
368 |
if (customOptionList != null && !customOptionList.isEmpty()) { |
382 |
if (customOptionList != null && !customOptionList.isEmpty()) { |
369 |
newField.setOptions(customOptionList); |
383 |
newField.setOptions(customOptionList); |
Lines 375-380
Link Here
|
375 |
currentDescription = characters.toString(); |
389 |
currentDescription = characters.toString(); |
376 |
} else if (localName.equals(ELEMENT_TYPE)) { |
390 |
} else if (localName.equals(ELEMENT_TYPE)) { |
377 |
currentType = characters.toString(); |
391 |
currentType = characters.toString(); |
|
|
392 |
} else if (localName.equals(ELEMENT_TYPE_DESC)) { |
393 |
currentTypeDesc = characters.toString(); |
394 |
} else if (localName.equals(ELEMENT_ENTER_BUG)) { |
395 |
currentEnterBug = characters.toString(); |
378 |
} else if (localName.equals(ELEMENT_REQUESTABLE)) { |
396 |
} else if (localName.equals(ELEMENT_REQUESTABLE)) { |
379 |
currentRequestable = characters.toString(); |
397 |
currentRequestable = characters.toString(); |
380 |
} else if (localName.equals(ELEMENT_SPECIFICALLY_REQUESTABLE)) { |
398 |
} else if (localName.equals(ELEMENT_SPECIFICALLY_REQUESTABLE)) { |