public List<org.openlca.ilcd.commons.Class> getSortedClasses() { DataSetInformation info = getDataSetInformation(); if (info != null) { FlowCategoryInformation categoryInfo = info.getClassificationInformation(); if (categoryInfo != null) { List<Classification> classifications = categoryInfo.getClassifications(); if (classifications != null && classifications.size() > 0) { return ClassList.sortedList(classifications.get(0)); } } } return Collections.emptyList(); }
private List<Category> getCompartments(FlowCategoryInformation categoryInfo) { if (categoryInfo != null) { List<FlowCategorization> categorizations = categoryInfo.getElementaryFlowCategorizations(); if (categorizations != null && categorizations.size() > 0) { FlowCategorization categorization = categorizations.get(0); List<Category> categories = categorization.getCategories(); if (categories != null && categories.size() > 0) { sort(categories); return categories; } } } return Collections.emptyList(); }