Package com.rometools.rome.feed.synd

Examples of com.rometools.rome.feed.synd.SyndCategoryImpl


        final List<Category> categories = entry.getCategories();
        if (categories != null) {
            final List<SyndCategory> syndCategories = new ArrayList<SyndCategory>();
            for (final Category category : categories) {
                final SyndCategory syndCategory = new SyndCategoryImpl();
                syndCategory.setName(category.getTerm());
                syndCategory.setTaxonomyUri(category.getSchemeResolved());
                // TODO: categories MAY have labels
                // syndCategory.setLabel(c.getLabel());
                syndCategories.add(syndCategory);
            }
            syndEntry.setCategories(syndCategories);
View Full Code Here


    }

    protected List<SyndCategory> createSyndCategories(final List<Category> rssCats) {
        final List<SyndCategory> syndCats = new ArrayList<SyndCategory>();
        for (final Category rssCat : rssCats) {
            final SyndCategory sCat = new SyndCategoryImpl();
            sCat.setTaxonomyUri(rssCat.getDomain());
            sCat.setName(rssCat.getValue());
            syndCats.add(sCat);
        }
        return syndCats;
    }
View Full Code Here

TOP

Related Classes of com.rometools.rome.feed.synd.SyndCategoryImpl

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.