Lines 313-326
Link Here
|
313 |
((Datatype)type).getEnumerations() == null) |
313 |
((Datatype)type).getEnumerations() == null) |
314 |
return null; |
314 |
return null; |
315 |
for(Object value: ((Datatype)type).getEnumerations()) { |
315 |
for(Object value: ((Datatype)type).getEnumerations()) { |
|
|
316 |
String str = (value!=null)?value.toString():null; |
316 |
if(context.getTypedChars() == null || context.getTypedChars().equals("")) { |
317 |
if(context.getTypedChars() == null || context.getTypedChars().equals("")) { |
317 |
ValueResultItem item = new ValueResultItem(attr, (String)value, context); |
318 |
ValueResultItem item = new ValueResultItem(attr, str, context); |
318 |
result.add(item); |
319 |
result.add(item); |
319 |
continue; |
320 |
continue; |
320 |
} |
321 |
} |
321 |
String str = (String)value; |
|
|
322 |
if(str.startsWith(context.getTypedChars())) { |
322 |
if(str.startsWith(context.getTypedChars())) { |
323 |
ValueResultItem item = new ValueResultItem(attr, (String)value, context); |
323 |
ValueResultItem item = new ValueResultItem(attr, str, context); |
324 |
result.add(item); |
324 |
result.add(item); |
325 |
} |
325 |
} |
326 |
} |
326 |
} |
Lines 344-350
Link Here
|
344 |
} |
344 |
} |
345 |
// namespace aware items |
345 |
// namespace aware items |
346 |
List<String> prefixes = getPrefixes(context, axi, cm); |
346 |
List<String> prefixes = getPrefixes(context, axi, cm); |
347 |
if (prefixes.size() == 0) { |
347 |
if (prefixes.isEmpty()) { |
348 |
prefixes.add(null); |
348 |
prefixes.add(null); |
349 |
} |
349 |
} |
350 |
for (String prefix: prefixes) { |
350 |
for (String prefix: prefixes) { |