Пример #1
0
 public Element getXml() {
   Element link = JDOMManager.element("link");
   link.setAttribute("rel", "related");
   link.setAttribute("type", "application/atom+xml");
   if (Helper.isNotNullOrEmpty(title)) link.setAttribute("title", title);
   link.setAttribute("href", url);
   return link;
 }
Пример #2
0
 public String getFilename() {
   String hash = Integer.toHexString(title.hashCode());
   return Helper.pad(hash, '0', 8);
 }