Examples of attributes()


Examples of org.jsoup.nodes.Node.attributes()

    WidgetChain inner = Chains.terminal();
    if (!node.childNodes().isEmpty())
      inner = Chains.singleton(new TextWidget(node.childNode(0).toString(), compiler));

    chain.addWidget(new RequireWidget(new XmlWidget(inner, node.nodeName(), compiler,
        HtmlTemplateCompiler.parseAttribs(node.attributes()))));
    chain.addWidget(new RequireWidget(new XmlWidget(inner, node.nodeName(), compiler,
        HtmlTemplateCompiler.parseAttribs(node.attributes()))));
    chain.addWidget(new RequireWidget(new XmlWidget(inner, node.nodeName(), compiler,
        HtmlTemplateCompiler.parseAttribs(node.attributes()))));
View Full Code Here

Examples of org.pirkaengine.core.parser.Fragment.attributes()

        while (iter.hasNext()) {
            Fragment fragment = iter.next();
            if (PrkElement.COMPONENT.name.equals(fragment.prkKey)) {
                PrkComponent comp = new PrkComponent();
                comp.setType(fragment.prkValue);
                for (String key : fragment.attributes().keySet()) {
                    comp.putAttr(key, fragment.attributes().get(key));
                }
                template.add(comp);
                text.delete(fragment.offset, text.length());
                continue;
View Full Code Here

Examples of org.pirkaengine.core.parser.Fragment.attributes()

            Fragment fragment = iter.next();
            if (PrkElement.COMPONENT.name.equals(fragment.prkKey)) {
                PrkComponent comp = new PrkComponent();
                comp.setType(fragment.prkValue);
                for (String key : fragment.attributes().keySet()) {
                    comp.putAttr(key, fragment.attributes().get(key));
                }
                template.add(comp);
                text.delete(fragment.offset, text.length());
                continue;
            }
View Full Code Here

Examples of org.sonar.api.issue.Issue.attributes()

    assertThat(issueDoc.reporter()).isEqualTo(issue.getReporter());
    assertThat(issueDoc.key()).isEqualTo(issue.getKey());
    assertThat(issueDoc.updateDate()).isEqualTo(issue.getIssueUpdateDate());
    assertThat(issueDoc.status()).isEqualTo(issue.getStatus());
    assertThat(issueDoc.severity()).isEqualTo(issue.getSeverity());
    assertThat(issueDoc.attributes()).isEqualTo(KeyValueFormat.parse(issue.getIssueAttributes()));
    assertThat(issueDoc.attribute("key")).isEqualTo("value");
  }

  @Test
  public void insert_and_find_after_date() throws Exception {
View Full Code Here

Examples of org.sonar.api.issue.internal.DefaultIssue.attributes()

    assertThat(issue.isNew()).isTrue();
    assertThat(issue.resolution()).isNull();
    assertThat(issue.status()).isEqualTo(Issue.STATUS_OPEN);
    assertThat(issue.attribute("JIRA")).isEqualTo("FOO-123");
    assertThat(issue.attribute("YOUTRACK")).isEqualTo("YT-123");
    assertThat(issue.attributes()).hasSize(2);
  }

  @Test
  public void not_set_default_severity() {
    DefaultIssue issue = (DefaultIssue) new DefaultIssueBuilder()
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlElement.attributes()

          property.put("name", propertyName);
          property.put("path", path);
          property.put("type", type);
          property.put("isPagePartReference", (isPagePartRef == null ? "false" : isPagePartRef));
         
          Iterator attributesIterator = propertyElement.attributes();
          while(attributesIterator.hasNext())
          {
            XmlAttribute attribute = (XmlAttribute)attributesIterator.next();
            if(attribute.getName().startsWith("path_"))
              property.put(attribute.getName(), attribute.getValue());
View Full Code Here

Examples of wycc.lang.SyntacticElement.attributes()

  }

  protected void transform(Codes.Invoke code, VcBranch branch)
      throws Exception {
    SyntacticElement entry = branch.entry();
    Collection<Attribute> attributes = entry.attributes();
    int[] code_operands = code.operands();
    if (code.target() != Codes.NULL_REG) {
      // Need to assume the post-condition holds.
      Expr[] operands = new Expr[code_operands.length];
      for (int i = 0; i != code_operands.length; ++i) {
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.