Examples of addCategory()


Examples of de.nava.informa.impl.basic.Item.addCategory()

        builder.createCategory(cat1, "cat1b");
        CategoryIF cat1c = builder.createCategory(cat1, "cat1c");
        builder.createCategory(cat1c, "cat1ca");
        CategoryIF cat2 = builder.createCategory(null, "cat2");
        itemA.addCategory(cat1);
        itemA.addCategory(cat2);
        assertEquals(2, itemA.getCategories().size());
        channel.addItem(itemA);
        // TODO: what about markup here ???
        ItemIF itemB = new Item("SoCool",
                "????**$12 @??? # <strong>should</strong> work",
View Full Code Here

Examples of de.nava.informa.impl.basic.Item.addCategory()

        ItemIF itemB = new Item("SoCool",
                "????**$12 @??? # <strong>should</strong> work",
                new URL("http://nava.de/very/nested/98"));
        itemB.setFound(new Date());
        CategoryIF catX = builder.createCategory(null, "catX");
        itemB.addCategory(catX);
        assertEquals(1, itemB.getCategories().size());
        channel.addItem(itemB);
        assertEquals(2, channel.getItems().size());
        // export this channel to file (encoding: utf-8)
        String basename = "export-rss20.xml";
View Full Code Here

Examples of edu.harvard.wcfia.yoshikoder.dictionary.SimpleDictionary.addCategory()

                        categoryName = "Entry_" + ii;
                        ii++;
                    }
                    cat = new CategoryNodeImpl(categoryName);
                    try {
                        dict.addCategory(cat, dict.getDictionaryRoot());
                    } catch (DuplicateException de){
                        errors.add(new BadPattern(lineNumber, trimmed, true));
                    }
                } else if (trimmed.length() > 0) {
                    // no need to fix these for a SubString match-using dictionary
View Full Code Here

Examples of edu.harvard.wcfia.yoshikoder.dictionary.YKDictionary.addCategory()

                    Node node = (Node)p.getLastPathComponent();
                    YKDictionary dict = (YKDictionary)targetTree.getModel();
                    if (node instanceof PatternNode)
                        dict.addPattern((PatternNode)node, (CategoryNode)parent);
                    else if (node instanceof CategoryNode)
                      dict.addCategory((CategoryNode)node, (CategoryNode)parent);   
                    // Last but not least, mark the drop a success.
                    dtde.dropComplete(true);
                    return;
                }
            }
View Full Code Here

Examples of edu.umd.cs.findbugs.config.ProjectFilterSettings.addCategory()

    protected void syncSelectedCategories() {
        ProjectFilterSettings filterSettings = getCurrentProps().getFilterSettings();
        for (Button checkBox : chkEnableBugCategoryList) {
            String category = (String) checkBox.getData();
            if (checkBox.getSelection()) {
                filterSettings.addCategory(category);
            } else {
                filterSettings.removeCategory(category);
            }
        }
        propertyPage.getVisibleDetectors().clear();
View Full Code Here

Examples of iqq.im.core.QQStore.addCategory()

      // 默认好友列表
      QQCategory c = new QQCategory();
      c.setIndex(0);
      c.setName("我的好友");
      c.setSort(0);
      store.addCategory(c);
      // 初始化好友列表
      for (int i = 0; i < jsonCategories.length(); i++) {
        JSONObject jsonCategory = jsonCategories.getJSONObject(i);
        QQCategory qqc = new QQCategory();
        qqc.setIndex(jsonCategory.getInt("index"));
View Full Code Here

Examples of javax.jdo.FetchGroup.addCategory()

        }
    }

    public void testRemoveMemberNotAMember() {
        FetchGroup fg = pm.getFetchGroup(Employee.class, "testRemoveMemberNotAMember");
        fg.addCategory(FetchGroup.ALL);
        try {
            fg.removeMember("NotAMember");
            fail("FetchGroup should throw on removeMember(NotAMember).");
        } catch(JDOException ex) {
            // good catch!
View Full Code Here

Examples of javax.microedition.pim.PIMList.addCategory()

            PIMList list = item.getPIMList();
            if (list.isCategory(category)) {
                item.addToCategory(category);
            } else {
                if ((list.maxCategories() == -1)||(list.maxCategories() > list.getCategories().length)) {
                    list.addCategory(category);
                    item.addToCategory(category);
                }
            }
        } catch (PIMException e) {
             StaticDataHelper.log("[CARD]Exception in XMLContactParser.addCategory(): " + e.toString());
View Full Code Here

Examples of net.rim.blackberry.api.pdap.BlackBerryPIMList.addCategory()

     */
    public Object execute( Object thiz, Object[] args ) throws Exception {
        // It does not matter which type of PIM list is being opened here
        // They share the same categories defined in the PIM database
        BlackBerryPIMList pimList = (BlackBerryPIMList) BlackBerryPIM.getInstance().openPIMList( PIM.TODO_LIST, PIM.READ_WRITE );
        pimList.addCategory( args[ 0 ].toString() );
        return UNDEFINED;
    }

    /**
     * @see blackberry.core.ScriptableFunctionBase#getFunctionSignatures()
View Full Code Here

Examples of net.sourceforge.cardme.vcard.types.CategoriesType.addCategory()

    nicknames.addNickname("Johny");
    nicknames.addNickname("JayJay");
    vcard.setNickname(nicknames);
   
    CategoriesType categories = new CategoriesType();
    categories.addCategory("Category 1");
    categories.addCategory("Category 2");
    categories.addCategory("Category 3");
    vcard.setCategories(categories);
   
    vcard.setSecurityClass(new ClassType("Public"));
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.