Examples of addLabel()


Examples of org.maltparserx.core.syntaxgraph.node.TokenNode.addLabel()

          if (i == begin && input.charAt(i) == EDGELABEL_SEPARATOR) {
            noneNode = true;
          } else if (start == begin) {
            if ((noneNode && input.charAt(i) != EDGELABEL_SEPARATOR) || !noneNode) {
              if (inputColumnsIterator.hasNext()) {
                t.addLabel(inputColumns.get(inputColumnsIterator.next()).getSymbolTable(),
                   
                    // Start BracketProgLangReader
                    decodeString(
                    // end BracketProgLangReader
                    (i == end - 1)?input.substring(start,end):input.substring(start, i)
View Full Code Here

Examples of org.mozilla.javascript.ast.LabeledStatement.addLabel()

  }

  @Override
  public AstNode labeledStatement(AstNode label, AstNode statement) {
    LabeledStatement s = new LabeledStatement();
    s.addLabel(cast(label, Label.class));
    s.setStatement(statement);
    return s;
  }

  @Override
View Full Code Here

Examples of org.neo4j.graphdb.Node.addLabel()

        dbNode.removeLabel(remove);
      }

      // add difference
      for (final Label add : toAdd) {
        dbNode.addLabel(add);
      }
    }
  }
}
View Full Code Here

Examples of org.neo4j.rest.graphdb.entity.RestNode.addLabel()

    }

    @Test
    public void testGetNodeLabel() {
        RestNode node = restAPI.createNode(map());
        node.addLabel(LABEL_FOO);
        int count=0;
        for (Label label1 : node.getLabels()) {
            assertEquals(LABEL_FOO.name(),label1.name());
            count++;
        }
View Full Code Here

Examples of org.primefaces.extensions.model.dynaform.DynaFormRow.addLabel()

        // to support outputLabel with "for" attribute

        // 1. row
        DynaFormRow row = model.createRegularRow();

        DynaFormLabel label11 = row.addLabel("Author", 1, 1);
        DynaFormControl control12 = row.addControl(new BookProperty("Author", true), "input", 1, 1);
        label11.setForControl(control12);

        DynaFormLabel label13 = row.addLabel("ISBN", 1, 1);
        DynaFormControl control14 = row.addControl(new BookProperty("ISBN", true), "input", 1, 1);
View Full Code Here

Examples of org.rssowl.core.internal.persist.News.addLabel()

    ILabel label1 = new Label(null, "Label1");
    ILabel label2 = new Label(null, "Label2");

    IFeed feed = new Feed(new URI("http://www.link.com"));
    INews news1 = new News(null, feed, new Date());
    news1.addLabel(label1);

    INews news2 = new News(null, feed, new Date());
    news2.addLabel(label1);

    INews news3 = new News(null, feed, new Date());
View Full Code Here

Examples of org.rssowl.core.persist.INews.addLabel()

    assertNotNull(news.getDescription());

    ILabel label = fFactory.createLabel(null, "Label");
    DynamicDAO.save(label);

    news.addLabel(label);
    DynamicDAO.save(news);

    assertNotNull(news.getDescription());
  }
View Full Code Here

Examples of org.rssowl.core.persist.INews.addLabel()

  public void testDeleteLabelContainedInNews() throws Exception {
    IFeed feed = fFactory.createFeed(null, new URI("http://www.feed.com"));
    INews news = fFactory.createNews(null, feed, new Date());
    ILabel label = fFactory.createLabel(null, "Label");
    DynamicDAO.save(label);
    news.addLabel(label);
    DynamicDAO.save(feed);
    assertEquals(1, news.getLabels().size());
    DynamicDAO.delete(label);
    assertEquals(0, news.getLabels().size());
View Full Code Here

Examples of org.rssowl.core.persist.INews.addLabel()

    DynamicDAO.delete(label);
    assertEquals(0, news.getLabels().size());

    label = fFactory.createLabel(null, "Another label");
    DynamicDAO.save(label);
    news.addLabel(label);
    NewsReference newsRef = new NewsReference(news.getId());
    news = null;
    feed = null;
    System.gc();
    DynamicDAO.delete(label);
View Full Code Here

Examples of org.rssowl.core.persist.INews.addLabel()

    /* Group by Label */
    {
      ILabel label1 = fFactory.createLabel(null, "Label 1");
      ILabel label2 = fFactory.createLabel(null, "Label 2");
      news6.addLabel(label1);
      news7.addLabel(label2);

      fGrouping.setType(NewsGrouping.Type.GROUP_BY_LABEL);
      Collection<EntityGroup> group = fGrouping.group(input);

      assertEquals(3, group.size());
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.