Exemplo n.º 1
0
 @SuppressWarnings("unchecked")
 public static Element mediaContent(Entry syndEntry) {
   for (Element element : (List<Element>) syndEntry.getForeignMarkup()) {
     if (NS_MEDIA_RSS.equals(element.getNamespace()) && "content".equals(element.getName())) {
       return element;
     }
   }
   return null;
 }
 protected void addEntry(Entry entry, Element parent) throws FeedException {
   Element eEntry = new Element("entry", getFeedNamespace());
   if (entry.getXmlBase() != null) {
     eEntry.setAttribute("base", entry.getXmlBase(), Namespace.XML_NAMESPACE);
   }
   populateEntry(entry, eEntry);
   generateForeignMarkup(eEntry, (List) entry.getForeignMarkup());
   checkEntryConstraints(eEntry);
   generateItemModules(entry.getModules(), eEntry);
   parent.addContent(eEntry);
 }
Exemplo n.º 3
0
 @SuppressWarnings("unchecked")
 public static Map<String, String> foreignElementLookup(Entry entry) {
   return foreignElementLookup((Iterable<Element>) entry.getForeignMarkup());
 }