Examples of text()


Examples of org.jacoco.report.internal.html.HTMLElement.text()

  }

  private void footer(final HTMLElement body) throws IOException {
    final HTMLElement footer = body.div(Styles.FOOTER);
    final HTMLElement versioninfo = footer.span(Styles.RIGHT);
    versioninfo.text("Created with ");
    versioninfo.a(JaCoCo.HOMEURL).text("JaCoCo");
    versioninfo.text(" ").text(JaCoCo.VERSION);
    footer.text(context.getFooterText());
  }
View Full Code Here

Examples of org.jbehave.core.io.rest.redmine.LoadFromRedmine.text()

  @Test
  public void canReadFromRedmineAsJSON() {
    LoadFromRedmine loader = new LoadFromRedmine(Type.JSON);
    String entity = read("redmine.json");
    String text = loader.text(entity, Type.JSON);
    assertThat(text, startsWith("Narrative"));
  }

  @Test
  public void canFormatURIForXML() {
View Full Code Here

Examples of org.jboss.dna.common.i18n.I18n.text()

     * @see org.jboss.dna.graph.connectors.RepositorySource#getConnection()
     */
    public RepositoryConnection getConnection() throws RepositorySourceException {
        if (getName() == null) {
            I18n msg = FederationI18n.propertyIsRequired;
            throw new RepositorySourceException(getName(), msg.text("name"));
        }
        if (getRepositoryContext() == null) {
            I18n msg = FederationI18n.propertyIsRequired;
            throw new RepositorySourceException(getName(), msg.text("repository context"));
        }
View Full Code Here

Examples of org.jboss.forge.parser.xml.query.Pattern.text()

         String attribute = path.indexOf(ATTR_PATH_SEPERATOR) != -1 ? path.substring(path.indexOf(ATTR_PATH_SEPERATOR)
                  + ATTR_PATH_SEPERATOR.length(), path.length()) : null;
         String[] attributes = attribute == null ? new String[0] : attribute.split(ATTR_SEPERATOR);

         Pattern pattern = new Pattern(name);
         pattern.text(text);
         for (String attr : attributes)
         {
            String[] nameValue = attr.split(ATTR_VALUE_SEPERATOR);
            if (nameValue.length != 2)
            {
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.Node.text()

   private String getTextIfExists(Query query)
   {
      Node propery = engine.getSingle(query);
      if(propery != null)
      {
         return propery.text();
      }
      return null;
   }
}
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.spi.Node.text()

   private String getTextIfExists(Query query)
   {
      Node propery = engine.getSingle(query);
      if(propery != null)
      {
         return propery.text();
      }
      return null;
   }
}
View Full Code Here

Examples of org.jdom.DefaultJDOMFactory.text()

    public EndpointReference createDefaultEPR()
    {
        DefaultJDOMFactory factory = new DefaultJDOMFactory();
        Element eprElem = factory.element("EPR", getNamespace());
        Element addressElem = factory.element(WSA_ADDRESS, getNamespace());
        addressElem.addContent(factory.text(getAnonymousUri()));
        eprElem.addContent(addressElem);
           
       
        return createEPR(eprElem);
    }
View Full Code Here

Examples of org.jsoup.nodes.Document.text()

      if (htmlString != null) {
        Document documentFragment = Jsoup.parseBodyFragment(htmlString);
        result = retrieveContent(documentFragment);

        if (result.equals("")) {
          String fragmentText = documentFragment.text();
          if (fragmentText != null) {
            result = fragmentText;
          }
        }
      }
View Full Code Here

Examples of org.jsoup.nodes.Element.text()

        return builder.toString();
    }

    protected void addTitle(Document doc, StringBuilder builder) {
        Element element = doc.getElementsByTag("h1").first();
        builder.append(element.text()).append("\n\n");
    }

    protected void addPanels(Document doc, StringBuilder builder) {
        Elements elements = doc.getElementsByTag("ac:structured-macro");
        for (Element element : elements) {
View Full Code Here

Examples of org.jsoup.nodes.TextNode.text()

    @Override
    public void head(Node node, int depth) {
      if (node instanceof TextNode) {
        TextNode textNode = (TextNode) node;
        String text = textNode.text().replace('\u00A0', ' ').trim(); // non breaking space
        if (!text.isEmpty()) {
          buffer.append(text);
          if (!text.endsWith(" ")) {
            buffer.append(" ");
          }
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.