1 5 package org.exoplatform.services.portletcontainer.pci.model; 6 7 import java.util.List ; 8 9 15 public class Util { 16 17 static public String getDescription(String lang, List descriptions) { 18 if (lang == null) return null; 19 lang = lang.toLowerCase(); 20 for (int i = 0; i < descriptions.size(); i++) { 21 Description desc = (Description) descriptions.get(i); 22 String listLang = desc.getLang(); 23 if (listLang != null) { 24 if (lang.equals(desc.getLang().toLowerCase())) { 25 return desc.getDescription() ; 26 } 27 } 28 } 29 return null; 30 } 31 } 32 | Popular Tags |