@Override public Object[] getChildren(Object parentElement) { CollectionFieldDAO dao = (CollectionFieldDAO) parentElement; if (!dao.getChildren().isEmpty()) { return dao.getChildren().toArray(); } return null; }
@Override public boolean hasChildren(Object element) { CollectionFieldDAO dao = (CollectionFieldDAO) element; return dao.getChildren().isEmpty() ? false : true; }