/**
* Parses a list of regular expressions stored inside list bean, defined by the standard <util:list>.
*/
private List<String> parseListOfRegexs(BeanDefinition listBean) {
Object value = listBean.getPropertyValues().getPropertyValue("sourceList").getValue();
List<String> regexs = new ArrayList<String>();
if (value instanceof ManagedList) {
@SuppressWarnings("rawtypes")
ManagedList regexList = (ManagedList) value;
for (int i = 0; i < regexList.size(); i++) {
Object obj = regexList.get(i);
if (obj instanceof TypedStringValue) {
regexs.add(((TypedStringValue) obj).getValue());
} else {
throw new RuntimeException("Can't parse the list of regular expressions from bean " + listBean);
}
}
} else {
throw new RuntimeException("Can't parse the list of regular expressions from bean " + listBean);
}
return regexs;
}
DependencyNotFoundFilterParser.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:redhat-repository-validator
作者:
评论列表
文章目录