Ejemplo n.º 1
0
 public static List<Term> getTermList(String categoryId) {
   try {
     return TermsDefineXmlParser.getList(categoryId);
   } catch (DocumentException e) {
     log.error("读取Term.xml文件异常", e);
   }
   return new ArrayList();
 }
Ejemplo n.º 2
0
 public static Map<String, Map<String, Term>> getRootMap() {
   if (rootMap == null) {
     try {
       rootMap = TermsDefineXmlParser.getMap();
     } catch (Exception e) {
       rootMap = new HashMap();
       log.error("读取Term文件出错!", e);
     }
   }
   return rootMap;
 }