use of org.openforis.collect.metamodel.view.CodeListItemView in project collect by openforis.
the class CodeListController method toViews.
private List<CodeListItemView> toViews(List<CodeListItem> items) {
List<CodeListItemView> views = new ArrayList<CodeListItemView>(items.size());
for (CodeListItem item : items) {
CodeListItemView view = new CodeListItemView();
view.setCode(item.getCode());
view.setLabel(item.getLabel());
views.add(view);
}
return views;
}
Aggregations