Пример #1
0
 /**
  * return style attributes as TreeMap
  *
  * @return
  */
 public TreeMap<String, String> getStyleAsTreeMap() {
   TreeMap<String, String> resultMap = new TreeMap<String, String>();
   if (M2StringUtils.isBlank(this.getStyle())) {
     return resultMap;
   }
   String st[] = this.getStyle().trim().split(";");
   String st2[];
   for (String s : st) {
     st2 = s.split(":");
     resultMap.put(st2[0].trim(), st2[1].trim());
   }
   return resultMap;
 }
Пример #2
0
 /** FOR DEBUG. This method does not include the field of a null object in the returned string. */
 public String toString() {
   return M2StringUtils.stringifier(this);
 }