Examples of Category


Examples of com.google.code.magja.model.category.Category

    product.set("meta_description", "one two tree");
    product.set("enable_googlecheckout", 1);

    // add category
    List<Category> categorys = new ArrayList<Category>();
    categorys.add(new Category(2));
    product.setCategories(categorys);

    //product.set("options_container", "container2");

    return product;
View Full Code Here

Examples of com.google.gdata.data.Category

  /** Google data labeling namespace */
  private static final String gLabels = Namespaces.g + "/labels";

  private static Category newLabel(String termAndLabel) {
    return new Category(gLabels, gLabels + "#" + termAndLabel, termAndLabel);
  }
View Full Code Here

Examples of com.google.gwt.autobean.shared.AutoBeanFactory.Category

        objectType.findMethod("hashCode", EMPTY_JTYPE),
        objectType.findMethod("toString", EMPTY_JTYPE));

    // Process annotations
    {
      Category categoryAnnotation = factoryType.getAnnotation(Category.class);
      if (categoryAnnotation != null) {
        categoryTypes = new ArrayList<JClassType>(
            categoryAnnotation.value().length);
        processClassArrayAnnotation(categoryAnnotation.value(), categoryTypes);
      } else {
        categoryTypes = null;
      }

      noWrapTypes = new ArrayList<JClassType>();
View Full Code Here

Examples of com.google.gwt.junit.viewer.client.Category

    return null;
  }

  private Category getCategoryByName(List categories, String categoryName) {
    for (Iterator catIt = categories.iterator(); catIt.hasNext();) {
      Category category = (Category) catIt.next();
      if (category.getName().equals(categoryName)) {
        return category;
      }
    }
    return null;
  }
View Full Code Here

Examples of com.google.web.bindery.autobean.shared.AutoBeanFactory.Category

        objectType.findMethod("hashCode", EMPTY_JTYPE),
        objectType.findMethod("toString", EMPTY_JTYPE));

    // Process annotations
    {
      Category categoryAnnotation = factoryType.getAnnotation(Category.class);
      if (categoryAnnotation != null) {
        categoryTypes = new ArrayList<JClassType>(
            categoryAnnotation.value().length);
        processClassArrayAnnotation(categoryAnnotation.value(), categoryTypes);
      } else {
        categoryTypes = null;
      }

      noWrapTypes = new ArrayList<JClassType>();
View Full Code Here

Examples of com.gwtmobile.persistence.test.domain.Category

      public void onSuccess()
      {
        destroyAllData(new Callback() {           
          @Override
          public void onSuccess() {
            final Category c = categoryEntity.newInstance();
            c.setName("Main");
            final Tag tag = tagEntity.newInstance();
            tag.setName("Urgent");
            for (int i = 0; i < 5; i++) {
              Task t = taskEntity.newInstance();
              t.setName("Task" + Integer.toString(i));
View Full Code Here

Examples of com.ibatis.jpetstore.domain.Category

  public void testShouldPopulateCategoryByIdForViewing() {
    Mock catalogServiceMock = mock(CatalogService.class);
    catalogServiceMock.expects(once())
        .method("getCategory")
        .with(NOT_NULL)
        .will(returnValue(new Category()));
    catalogServiceMock.expects(once())
        .method("getProductListByCategory")
        .with(NOT_NULL)
        .will(returnValue(new PaginatedArrayList(4)));
    CatalogBean bean = new CatalogBean((CatalogService) catalogServiceMock.proxy());
View Full Code Here

Examples of com.ipeirotis.gal.core.Category

   
    Collection<Category> categories = new HashSet<Category>();
   
   
    for (int i=1; i<5; i++) {
      Category c = new Category("cat"+i);
      categories.add(c);
    }
   
    cm = new ConfusionMatrix(categories);
    cm.empty();
View Full Code Here

Examples of com.ipeirotis.gal.scripts.Category

   


    public static Map<String, String> gal( ArrayList<Vote> votes, int threshold ) {
        Set<Category> categories = new HashSet<Category>();
        Category relevant = new Category("1");
        Category irrelevant = new Category("0");
        categories.add(relevant);
        categories.add(irrelevant);
        DawidSkene ds = new DawidSkene(categories);

        ds.addMisclassificationCost(new MisclassificationCost(relevant.getName(), relevant.getName(), 0.0));
        ds.addMisclassificationCost(new MisclassificationCost(irrelevant.getName(), irrelevant.getName(), 0.0));
        ds.addMisclassificationCost(new MisclassificationCost(relevant.getName(), irrelevant.getName(), 1.0));
        ds.addMisclassificationCost(new MisclassificationCost(irrelevant.getName(), relevant.getName(), 1.0));

        for (Vote vote : votes ) {
           if (vote.sequence <= threshold ) {
              AssignedLabel l = new AssignedLabel( vote.worker, vote.unit, vote.label);
              ds.addAssignedLabel(l);
View Full Code Here

Examples of com.jada.jpa.entity.Category

       EntityManager em = JpaConnection.getInstance().getCurrentEntityManager();
    Item item = ItemDAO.load(adminBean.getSite().getSiteId(), Format.getLong(form.getItemId()));
    String catIds[] = form.getRemoveCategories();
    if (catIds != null) {
      for (String catId : catIds) {
        Category category = CategoryDAO.load(site.getSiteId(), Format.getLong(catId));
        item.getCategories().remove(category);
      }
    }

    item.setRecUpdateBy(adminBean.getUser().getUserId());
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.