【发布时间】:2014-10-06 22:29:55
【问题描述】:
我正在使用以下代码 sn-p 来检索特定选项列表的选项项
Map<Serializable, Serializable> items = new HashMap<Serializable, Serializable>();
Iterator<Choice> choiceIterator = choiceList.get_ChoiceValues().iterator();
while(choiceIterator.hasNext()){
Choice choice = choiceIterator.next();
if(choice.get_ChoiceType() == ChoiceType.INTEGER){
itemKey = choice.get_ChoiceIntegerValue();
}else{
itemKey = choice.get_ChoiceStringValue();
}
items.put(itemKey, ((LocalizedStringImpl)choice.get_DisplayNames().get(0)).get_LocalizedText());
}
但是get_LocalizedText() 方法只是获取区域设置为en_us 的值。那么如果我想获取其他语言环境,例如ar_eg,该怎么办?
提前致谢。
【问题讨论】:
标签: filenet-p8 filenet filenet-content-engine