Package com.sun.syndication.feed.rss

Examples of com.sun.syndication.feed.rss.Description


        }
    }

    protected void populateItem(Item item, Element eItem, int index) {
        super.populateItem(item,eItem, index);
        Description description = item.getDescription();
        if (description!=null) {
            eItem.addContent(generateSimpleElement("description",description.getValue()));
        }
        if (item.getModule(getContentNamespace().getURI()) == null && item.getContent() != null) {
            Element elem = new Element("encoded", getContentNamespace());
            elem.addContent(item.getContent().getValue());
            eItem.addContent(elem);
View Full Code Here


    protected boolean isHourFormat24(Element rssRoot) {
        return false;
    }

    protected Description parseItemDescription(Element rssRoot,Element eDesc) {
        Description desc = super.parseItemDescription(rssRoot,eDesc);
        desc.setType("text/html"); // change as per https://rome.dev.java.net/issues/show_bug.cgi?id=26
        return desc;
    }
View Full Code Here

        }
        return item;
    }

    protected Description parseItemDescription(Element rssRoot,Element eDesc) {
        Description desc = new Description();
        desc.setType("text/plain");
        desc.setValue(eDesc.getText());
        return desc;
    }
View Full Code Here

        }
        return cats;
    }

    protected Description parseItemDescription(Element rssRoot,Element eDesc) {
        Description desc = super.parseItemDescription(rssRoot,eDesc);
        desc.setType("text/html");
        return desc;
    }
View Full Code Here

    }

    protected void populateItem(Item item, Element eItem, int index) {
        super.populateItem(item,eItem, index);

        Description description = item.getDescription();
        if (description!=null && description.getType()!=null) {
            Element eDescription = eItem.getChild("description",getFeedNamespace());
            eDescription.setAttribute(new Attribute("type",description.getType()));
        }
        eItem.removeChild("expirationDate",getFeedNamespace());
    }
View Full Code Here

    // rss.content -> synd.content
    // rss.description -> synd.description
   
    protected SyndEntry createSyndEntry(Item item, boolean preserveWireItem) {
        SyndEntry syndEntry = super.createSyndEntry(item, preserveWireItem);
        Description desc = item.getDescription();
        if (desc != null) {
            SyndContent descContent = new SyndContentImpl();
            descContent.setType(desc.getType());
            descContent.setValue(desc.getValue());
            syndEntry.setDescription(descContent);
        }
        Content cont = item.getContent();
        if (cont != null) {
            SyndContent content = new SyndContentImpl();
View Full Code Here

        }
        return item;
    }

    protected Description createItemDescription(SyndContent sContent) {
        Description desc = new Description();
        desc.setValue(sContent.getValue());
        desc.setType(sContent.getType());
        return desc;
    }
View Full Code Here

        }
    }

    protected void populateItem(Item item, Element eItem, int index) {
        super.populateItem(item,eItem, index);
        Description description = item.getDescription();
        if (description!=null) {
            eItem.addContent(generateSimpleElement("description",description.getValue()));
        }
        if (item.getModule(getContentNamespace().getURI()) == null && item.getContent() != null) {
            Element elem = new Element("encoded", getContentNamespace());
            elem.addContent(item.getContent().getValue());
            eItem.addContent(elem);
View Full Code Here

    // rss.description -> synd.description
   
    protected SyndEntry createSyndEntry(Item item, boolean preserveWireItem) {
        SyndEntry syndEntry = super.createSyndEntry(item, preserveWireItem);

        Description desc = item.getDescription();
        if (desc!=null) {
            SyndContent descContent = new SyndContentImpl();
            descContent.setType(desc.getType());
            descContent.setValue(desc.getValue());
            syndEntry.setDescription(descContent);
        }
        Content cont = item.getContent();
        if (cont!=null) {
            SyndContent contContent = new SyndContentImpl();
View Full Code Here

       
        return item;
    }

    protected Description createItemDescription(SyndContent sContent) {
        Description desc = new Description();
        desc.setValue(sContent.getValue());
        desc.setType(sContent.getType());
        return desc;
    }
View Full Code Here

TOP

Related Classes of com.sun.syndication.feed.rss.Description

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.