Package com.rometools.rome.feed.rss

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


        if (!eCats.isEmpty()) {

            cats = new ArrayList<Category>();
            for (final Element eCat : eCats) {

                final Category cat = new Category();

                // getRSSNamespace()); DONT KNOW WHY DOESN'T WORK
                final String domain = eCat.getAttributeValue("domain");
                if (domain != null) {
                    cat.setDomain(domain);
                }

                cat.setValue(eCat.getText());

                cats.add(cat);

            }
        }
View Full Code Here


    }

    protected List<Category> createRSSCategories(final List<SyndCategory> sCats) {
        final List<Category> cats = new ArrayList<Category>();
        for (final SyndCategory sCat : sCats) {
            final Category cat = new Category();
            cat.setDomain(sCat.getTaxonomyUri());
            cat.setValue(sCat.getName());
            cats.add(cat);
        }
        return cats;
    }
View Full Code Here

TOP

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

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.