public String getValue(String language) { if (strings == null) { return null; } for (LangString langString : strings) { if (language.equalsIgnoreCase(langString.getLanguage())) { return langString.value; } } return null; }
@Override public String toString() { if (strings.isEmpty()) { return ""; } if (strings.size() == 1) { return strings.get(0).getValue(); } for (LangString str : strings) { if ("nl".equals(str.getLanguage())) { return str.getValue(); } } return strings.get(0).getValue(); }
public String getName() { DataSetInformation info = getDataSetInformation(); if (info != null) { FlowName flowName = info.getName(); if (flowName != null) { return LangString.get(flowName.getBaseName()); } } return null; }
public String getComment() { DataSetInformation info = getDataSetInformation(); if (info != null) return LangString.get(info.getGeneralComment()); return null; }