Examples of addCategory()


Examples of ca.uhn.fhir.model.api.BundleEntry.addCategory()

      entry.setResource(next);
      TagList list = (TagList) next.getResourceMetadata().get(ResourceMetadataKeyEnum.TAG_LIST);
      if (list != null) {
        for (Tag tag : list) {
          if (StringUtils.isNotBlank(tag.getTerm())) {
            entry.addCategory().setTerm(tag.getTerm()).setLabel(tag.getLabel()).setScheme(tag.getScheme());
          }
        }
      }

      RuntimeResourceDefinition def = getContext().getResourceDefinition(next);
View Full Code Here

Examples of com.agiletec.plugins.jacms.aps.system.services.content.model.Content.addCategory()

    Content masterContent = this._contentManager.loadContent("EVN193", true);

    Content content1 = this._contentManager.loadContent("RAH101", true);
    content1.setId("RAH101b");
    for (Category category : masterContent.getCategories()) {
      content1.addCategory(category);
    }
    this._contentDao.addEntity(content1);
    this._contentDao.insertOnLineContent(content1);

    Content content2 = this._contentManager.loadContent("ART120", true);
View Full Code Here

Examples of com.dianping.cat.home.alert.summary.entity.AlertSummary.addCategory()

    AlertSummary alertSummary = new AlertSummary();

    alertSummary.setDomain(domain);
    alertSummary.setAlertDate(date);

    alertSummary.addCategory(generateCategoryByTimeCategory(date, AlertType.Network.getName()));
    alertSummary.addCategory(generateCategoryByTimeCateDomain(date, AlertType.Business.getName(), domain));
    alertSummary.addCategory(generateCategoryByTimeCateDomain(date, AlertType.Exception.getName(), domain));
    alertSummary.addCategory(generateCategoryByTimeCateDomain(date, AlertType.System.getName(), domain));

    TopologyGraph topology = m_topologyManager.buildTopologyGraph(domain, date.getTime());
View Full Code Here

Examples of com.google.gdata.data.youtube.YouTubeMediaGroup.addCategory()

      YouTubeMediaGroup mg = newEntry.getOrCreateMediaGroup();

      mg.setTitle(new MediaTitle());
      mg.getTitle().setPlainTextContent(title);

      mg.addCategory(new MediaCategory(YouTubeNamespace.CATEGORY_SCHEME, assignment.getCategory()));

      mg.setKeywords(new MediaKeywords());

      List<String> tags = new ArrayList<String>();
      for (int i = 0; i < tagsArray.length(); i++) {
View Full Code Here

Examples of com.hmkcode.vo.Article.addCategory()

    public static Article createArticle(){
      Article article = new Article();
     
      article.setTitle("Castor - Java Object to XML & XML to Object Mapping");
      article.setUrl("http://hmkcode.com/castor-java-object-xml");
      article.addCategory("Java");
      article.addTag("Java");
      article.addTag("Castor");
      article.addTag("XML");
      article.addTag("Marshalling");
      article.addTag("Unmarshalling");
View Full Code Here

Examples of com.sun.syndication.propono.atom.common.Categories.addCategory()

                    for (Iterator it = rollerCats.iterator(); it.hasNext();) {
                        WeblogCategory rollerCat = (WeblogCategory) it.next();
                        Category cat = new Category();
                        cat.setTerm(rollerCat.getPath().substring(1));
                        cat.setLabel(rollerCat.getName());
                        cats.addCategory(cat);
                    }
                    entryCol.addCategories(cats);

                    // Add tags as free-form categories using scheme that points
                    // to site because tags can be considered site-wide
View Full Code Here

Examples of com.volantis.mcs.policies.variants.selection.TargetedSelectionBuilder.addCategory()

        policyBuilder.addVariantBuilder(variantBuilder);

        // Selection.
        TargetedSelectionBuilder targeted =
                factory.createTargetedSelectionBuilder();
        targeted.addCategory("Ok");
        targeted.addCategory("Good");

        variantBuilder.setSelectionBuilder(targeted);

        // Meta Data.
View Full Code Here

Examples of cross.reputation.model.Community.addCategory()

            statement.getObject().asResource(), Category.class);
        if(category == null) {
          category = getCategory(model,
              statement.getObject().asResource());         
        }
        community.addCategory(category);
      }
    }
    // hasReputationModel //
    Property hasReputationModel = ResourceFactory.createProperty(
        riNamespace + "hasReputationModel");   
View Full Code Here

Examples of de.nava.informa.core.ChannelIF.addCategory()

      cat1 = builder.createCategory(null, "Root Cat");
      session.saveOrUpdate(cat1);
      // create cat2
      cat2 = builder.createCategory(cat1, "Agent_A");
      session.saveOrUpdate(cat2);
      channel.addCategory(cat2);
      session.saveOrUpdate(channel);
      tx.commit();
      chId = (int) channel.getId();
    }
    catch (HibernateException he) {
View Full Code Here

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

        builder.createCategory(cat1a, "cat1ac");
        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",
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.