Examples of SyndEntry


Examples of org.apache.wink.common.model.synd.SyndEntry

                return header.toArray(EMPTY_ARRAY);
            }

            // send the entire table base on the iterator
            // first, fetch the entry using original iterator
            SyndEntry entry = iterator.next();

            // second, fetch data from entry
            String base = entry.getBase();
            String id = entry.getId();
            String lang = entry.getLang();

            String authors =
                entry.getAuthors() != null && !entry.getAuthors().isEmpty() ? entry.getAuthors()
                    .get(0).getName() : "";
            String title = entry.getTitle() != null ? entry.getTitle().getValue() : "";
            String content = entry.getContent() != null ? entry.getContent().getValue() : "";
            String published =
                entry.getPublished() != null ? String.valueOf(entry.getPublished()) : "";
            String updated = entry.getUpdated() != null ? String.valueOf(entry.getUpdated()) : "";
            String summary = entry.getSummary() != null ? entry.getSummary().getValue() : "";

            // to improve the search, convert categories to Map
            Map<String, String> categoriesMap = new HashMap<String, String>();
            List<SyndCategory> categories = entry.getCategories();
            if (categories != null) {
                for (SyndCategory bean : categories) {
                    categoriesMap.put(bean.getScheme(), bean.getTerm());
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.