Examples of AtomCategory


Examples of org.apache.wink.common.model.atom.AtomCategory

        List<AtomCategory> categoryBeans = cats.getCategories();

        // Loop over a list of Category Beans and add them to Service Document
        // collection
        for (AtomCategory cat : categoryBeans) {
            AtomCategory xmlCategory = new AtomCategory();

            String catLabel = cat.getLabel();
            if (catLabel != null) {
                xmlCategory.setLabel(catLabel);
            }

            String catScheme = cat.getScheme();
            if (catScheme != null) {
                xmlCategory.setScheme(catScheme);
            }

            String catTerm = cat.getTerm();
            if (catTerm != null) {
                xmlCategory.setTerm(catTerm);
            }
            xmlCategoryList.add(xmlCategory);
        }

        String catsScheme = cats.getScheme();
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomCategory

        List<AtomCategory> categoryList = appCategories.getCategory();

        List<AtomCategory> categories = cats.getCategories();

        for (AtomCategory cat : categories) {
            AtomCategory atomCategory = new AtomCategory();

            String catLabel = cat.getLabel();
            if (catLabel != null) {
                atomCategory.setLabel(catLabel);
            }

            String catScheme = cat.getScheme();
            if (catScheme != null) {
                atomCategory.setScheme(catScheme);
            }

            String catTerm = cat.getTerm();
            if (catTerm != null) {
                atomCategory.setTerm(catTerm);
            }
            categoryList.add(atomCategory);
        }

        String catsScheme = cats.getScheme();
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomCategory

    private AppCategories getInlineCategories() {
        AppCategories cats = new AppCategories();
        cats.setScheme("scheme");
        cats.setFixed(AppYesNo.NO);

        AtomCategory cat = new AtomCategory();
        cat.setScheme("scheme1");
        cat.setLabel("label");
        cat.setTerm("term1");
        cats.getCategory().add(cat);

        cat = new AtomCategory();
        cat.setScheme("scheme2");
        cat.setLabel("labe2");
        cat.setTerm("term2");
        cats.getCategory().add(cat);
        return cats;
    }
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomCategory

        List<AtomCategory> categoryList = appCategories.getCategory();

        List<AtomCategory> categories = cats.getCategories();

        for (AtomCategory cat : categories) {
            AtomCategory atomCategory = new AtomCategory();

            String catLabel = cat.getLabel();
            if (catLabel != null) {
                atomCategory.setLabel(catLabel);
            }

            String catScheme = cat.getScheme();
            if (catScheme != null) {
                atomCategory.setScheme(catScheme);
            }

            String catTerm = cat.getTerm();
            if (catTerm != null) {
                atomCategory.setTerm(catTerm);
            }
            categoryList.add(atomCategory);
        }

        String catsScheme = cats.getScheme();
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomCategory

     *
     * @param term The string term
     * @return The newly created atom:Category
     */
    public AtomCategory addCategory(String term) {
        AtomCategory newCategory = new AtomCategory();
        newCategory.setTerm(term);
        categories.add(newCategory);
        return newCategory;
    }
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomCategory

     * @param term The string term
     * @param label The human readable label for the Category
     * @return The newly created atom:Category
     */
    public AtomCategory addCategory(String scheme, String term, String label) {
        AtomCategory newCategory = new AtomCategory();
        newCategory.setScheme(scheme);
        newCategory.setTerm(term);
        newCategory.setLabel(label);
        categories.add(newCategory);
        return null;
    }
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomCategory

    private AppCategories getInlineCategories() {
        AppCategories cats = new AppCategories();
        cats.setScheme("scheme");
        cats.setFixed(AppYesNo.NO);

        AtomCategory cat = new AtomCategory();
        cat.setScheme("scheme1");
        cat.setLabel("label");
        cat.setTerm("term1");
        cats.getCategory().add(cat);

        cat = new AtomCategory();
        cat.setScheme("scheme2");
        cat.setLabel("labe2");
        cat.setTerm("term2");
        cats.getCategory().add(cat);
        return cats;
    }
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomCategory

        List<AtomCategory> categoryBeans = cats.getCategories();

        // Loop over a list of Category Beans and add them to Service Document
        // collection
        for (AtomCategory cat : categoryBeans) {
            AtomCategory xmlCategory = new AtomCategory();

            String catLabel = cat.getLabel();
            if (catLabel != null) {
                xmlCategory.setLabel(catLabel);
            }

            String catScheme = cat.getScheme();
            if (catScheme != null) {
                xmlCategory.setScheme(catScheme);
            }

            String catTerm = cat.getTerm();
            if (catTerm != null) {
                xmlCategory.setTerm(catTerm);
            }
            xmlCategoryList.add(xmlCategory);
        }

        String catsScheme = cats.getScheme();
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomCategory

        AppCategories cats = new AppCategories();
        cats.setScheme("urn:org.apache.wink.example.default.scheme");
        cats.setFixed(AppYesNo.YES);
        // Get category listing for somewhere
        for (int i = 0; i < 4; i++) {
            AtomCategory cb = new AtomCategory();
            cb.setLabel("label" + i);
            cb.setScheme("urn:org.apache.wink.scheme" + i);
            cb.setTerm("term" + i);
            cats.getCategory().add(cb);
        }
        return cats;
    }
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomCategory

        Categories cats = new Categories();
        cats.setScheme("urn:org.apache.wink.example.default.scheme");
        cats.setFixed(true);
        // Get category listing for somewhere
        for (int i = 0; i < 4; i++) {
            AtomCategory cb = new AtomCategory();
            cb.setLabel("label" + i);
            cb.setScheme("urn:org.apache.wink.scheme" + i);
            cb.setTerm("term" + i);
            cats.addCategory(cb);
        }
        return cats;
    }
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.