Examples of Category


Examples of org.opoo.press.Category

       
        tags.add(stringTag);
      }
      if("category".equals(domain)){
        String stringCategory = text;
        Category category = site.getCategory(nicename);
        if(category != null){
          stringCategory = category.getNicename();
        }
        cats.add(stringCategory);
      }
    }
   
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.entity.customer.Category

        // Creates teh entities Category.The DESCRIPTION_VALUES length divided
        // by 2 is the
        // number of address created.
        for (int i = 0; i < strDescriptionValues.length / 2; i++) {
            Category category = new Category();
            category.setId(i);
            category.setDescription(strDescriptionValues[i]);
            entityManager.persist(category);
        }
        entityManager.flush();

        // Creates the product order and the products associated.
View Full Code Here

Examples of org.pdtextensions.semanticanalysis.model.validators.Category

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setCategory(Category newCategory) {
    Category oldCategory = category;
    category = newCategory;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ValidatorsPackage.VALIDATOR__CATEGORY, oldCategory, category));
  }
View Full Code Here

Examples of org.pentaho.metadata.model.Category

    logicalColumn2.setId( "LC_SALESREP" );
    logicalColumn2.setPhysicalColumn( column2 );
    logicalColumn2.setLogicalTable( logicalTable );
    logicalTable.addLogicalColumn( logicalColumn2 );

    Category mainCategory = new Category();
    mainCategory.setId( "CATEGORY" );
    mainCategory.setName( new LocalizedString( "en_US", "Category" ) );
    mainCategory.addLogicalColumn( logicalColumn );
    mainCategory.addLogicalColumn( logicalColumn2 );

    logicalModel.getCategories().add( mainCategory );

    Domain domain = new Domain();
    domain.setId( "DOMAIN" );
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.docking.Category

      propertyChangeSupport.removePropertyChangeListener(propertyName, listener);
    }

    public boolean isStructureVisible()
    {
      final Category reportTreeToolWindow = getReportTreeToolWindow();
      return reportTreeToolWindow != null && reportTreeToolWindow.isMinimized() == false;
    }
View Full Code Here

Examples of org.pirkaengine.core.Category

        Assert.assertEquals("タイトル", target.eval("title", model));
    }

    @Test
    public void eval_getter() {
        Category category = new Category();
        category.id = 10;
        Item item = new Item();
        item.name = "名称";
        item.category = category;
        HashMap<String, Object> model = getModel("item", item);
View Full Code Here

Examples of org.restlet.ext.atom.Category

                startLink(this.currentLink);
            } else if (localName.equalsIgnoreCase("entry")) {
                this.state = State.FEED_ENTRY;
                startEntry(this.currentEntry);
            } else if (localName.equals("category")) {
                this.currentCategory = new Category();
                this.currentCategory.setTerm(attrs.getValue("", "term"));
                this.currentCategory.setScheme(new Reference(attrs.getValue("",
                        "scheme")));
                this.currentCategory.setLabel(attrs.getValue("", "label"));
View Full Code Here

Examples of org.rhq.core.domain.alert.AlertDampening.Category

            if (alertDampening == null) {
                alertDampening = new AlertDampening(AlertDampening.Category.NONE);
                alertDefinition.setAlertDampening(alertDampening);
            }

            Category category = alertDampening.getCategory();
            dampeningRuleSelection.setValue(category.name());
            dampeningRuleStatic.setValue(getCategoryTitle(category));
            dampeningRuleStatic.setTooltip(getCategoryHelp(category.name()));

            switch (category) {
            case NONE: {
                break;
            }
            case CONSECUTIVE_COUNT: {
                consecutiveOccurrencesSpinner.setValue(alertDampening.getValue());
                consecutiveOccurrencesStatic.setValue(alertDampening.getValue());
                break;
            }
            case PARTIAL_COUNT: {
                partialOccurrencesSpinner.setValue(alertDampening.getValue());
                partialOccurrencesStatic.setValue(alertDampening.getValue());

                partialEvaluationsSpinner.setValue(alertDampening.getPeriod());
                partialEvaluationsStatic.setValue(alertDampening.getPeriod());
                break;
            }
            case DURATION_COUNT: {
                durationOccurrencesSpinner.setValue(alertDampening.getValue());
                durationOccurrencesStatic.setValue(alertDampening.getValue());

                durationTimePeriodSpinner.setValue(alertDampening.getPeriod());
                durationTimePeriodStatic.setValue(alertDampening.getPeriod());

                durationTimeUnitsSelection.setValue(alertDampening.getPeriodUnits().name());
                durationTimeUnitsStatic.setValue(getTimeUnitsTitle(alertDampening.getPeriodUnits()));
                break;
            }
            default: {
                throw new IllegalStateException(MSG.view_alert_common_tab_invalid_dampening_category(category.name())); // should never happen
            }
            }
        }

        markForRedraw();
View Full Code Here

Examples of org.rometools.feed.module.itunes.types.Category

                image.setAttribute("href", info.getImage().toExternalForm());
                element.addContent(image);
            }

            for (Iterator it = info.getCategories().iterator(); it.hasNext();) {
          Category cat = (Category) it.next();
                Element category = this.generateSimpleElement("category", "");
                category.setAttribute("text", cat.getName());

                if (cat.getSubcategory() != null) {
                    Element subcat = this.generateSimpleElement("category", "");
                    subcat.setAttribute("text", cat.getSubcategory().getName());
                    category.addContent(subcat);
                }

                element.addContent(category);
            }
View Full Code Here

Examples of org.rometools.feed.module.mediarss.types.Category

           
            for (int i = 0; (categories != null) && (i < categories.size());
            i++) {
                try {
                    Element cat = (Element) categories.get(i);
                    values.add(new Category(cat.getAttributeValue("scheme"),
                            cat.getAttributeValue("label"), cat.getText()));
                } catch (Exception ex) {
                    LOG.log(Level.WARNING, "Exception parsing category tag.", ex);
                }
            }
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.