示例#1
0
  public String getValue(String language) {
    if (strings == null) {
      return null;
    }

    for (LangString langString : strings) {
      if (language.equalsIgnoreCase(langString.getLanguage())) {
        return langString.value;
      }
    }
    return null;
  }
示例#2
0
 @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();
 }
示例#3
0
 public String getName() {
   DataSetInformation info = getDataSetInformation();
   if (info != null) {
     FlowName flowName = info.getName();
     if (flowName != null) {
       return LangString.get(flowName.getBaseName());
     }
   }
   return null;
 }
示例#4
0
 public String getComment() {
   DataSetInformation info = getDataSetInformation();
   if (info != null) return LangString.get(info.getGeneralComment());
   return null;
 }