Package com.rometools.rome.feed.rss

Examples of com.rometools.rome.feed.rss.Guid


                creators.clear();
                creators.addAll(s);
            }
        }

        final Guid guid = item.getGuid();
        final String itemLink = item.getLink();
        if (guid != null) {
            final String guidValue = guid.getValue();
            syndEntry.setUri(guidValue);
            if (itemLink == null && guid.isPermaLink()) {
                syndEntry.setLink(guidValue);
            }
        } else {
            syndEntry.setUri(itemLink);
        }
View Full Code Here


        if (Lists.isNotEmpty(authors)) {
            final SyndPerson author = authors.get(0);
            item.setAuthor(author.getEmail());
        }

        Guid guid = null;
        final String uri = sEntry.getUri();
        final String link = sEntry.getLink();
        if (uri != null) {
            guid = new Guid();
            guid.setPermaLink(false);
            guid.setValue(uri);
        } else if (link != null) {
            guid = new Guid();
            guid.setPermaLink(true);
            guid.setValue(link);

        }
        item.setGuid(guid);

        final SyndLink comments = sEntry.findRelatedLink("comments");
View Full Code Here

        }

        final Element eGuid = eItem.getChild("guid", getRSSNamespace());
        if (eGuid != null) {

            final Guid guid = new Guid();

            // getRSSNamespace()); DONT KNOW WHY DOESN'T WORK
            final String att = eGuid.getAttributeValue("isPermaLink");
            if (att != null) {
                guid.setPermaLink(att.equalsIgnoreCase("true"));
            }

            guid.setValue(eGuid.getText());

            item.setGuid(guid);

        }
View Full Code Here

        final String comments = item.getComments();
        if (comments != null) {
            eItem.addContent(generateSimpleElement("comments", comments));
        }

        final Guid guid = item.getGuid();
        if (guid != null) {
            final Element eGuid = generateSimpleElement("guid", guid.getValue());
            if (!guid.isPermaLink()) {
                eGuid.setAttribute("isPermaLink", "false");
            }
            eItem.addContent(eGuid);
        }
    }
View Full Code Here

TOP

Related Classes of com.rometools.rome.feed.rss.Guid

Copyright © 2018 www.massapicom. 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.