Example #1
0
 public List<Category> getSortedCompartments() {
   DataSetInformation info = getDataSetInformation();
   if (info != null) {
     FlowCategoryInformation categoryInfo = info.getClassificationInformation();
     return getCompartments(categoryInfo);
   }
   return Collections.emptyList();
 }
Example #2
0
 public String getName() {
   DataSetInformation info = getDataSetInformation();
   if (info != null) {
     FlowName flowName = info.getName();
     if (flowName != null) {
       return LangString.get(flowName.getBaseName());
     }
   }
   return null;
 }
Example #3
0
 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();
 }
Example #4
0
 public String getComment() {
   DataSetInformation info = getDataSetInformation();
   if (info != null) return LangString.get(info.getGeneralComment());
   return null;
 }
Example #5
0
 public String getSumFormula() {
   DataSetInformation info = getDataSetInformation();
   if (info != null) return info.getSumFormula();
   return null;
 }
Example #6
0
 public String getCasNumber() {
   DataSetInformation info = getDataSetInformation();
   if (info != null) return info.getCASNumber();
   return null;
 }
Example #7
0
 @Override
 public String getId() {
   DataSetInformation info = getDataSetInformation();
   if (info != null) return info.getUUID();
   return null;
 }