org.joox.Match.append()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.8k)|赞(0)|评价(0)|浏览(151)

本文整理了Java中org.joox.Match.append()方法的一些代码示例,展示了Match.append()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Match.append()方法的具体详情如下:
包路径:org.joox.Match
类名称:Match
方法名:append

Match.append介绍

[英]Append content to the end of each element's content in the set of matched elements.
[中]将内容附加到匹配元素集中每个元素内容的末尾。

代码示例

代码示例来源:origin: org.jooq/joox-java-6

/**
 * Create a new DOM element in an independent document
 * <p>
 * The added content is cloned into the new document
 */
public static Match $(String name, Match... content) {
  return $(name).append(content);
}

代码示例来源:origin: org.jooq/joox-java-6

/**
 * Create a new DOM element in an independent document
 */
public static Match $(String name, String content) {
  return $(name).append(content);
}

代码示例来源:origin: org.jooq/joox-java-6

/**
 * Create a new DOM element in an independent document
 * <p>
 * The added content is cloned into the new document
 */
public static Match $(String name, Element... content) {
  return $(name).append(content);
}

代码示例来源:origin: windup/windup

document = $(is).document();
$(document).find("#dot-source").append(result);

代码示例来源:origin: org.jboss.windup.reporting/windup-reporting-impl

document = $(is).document();
$(document).find("#dot-source").append(result);

代码示例来源:origin: org.jboss.windup/windup-grapher

public void writeGraph(final OutputStream os) throws IOException {
  // read in the html template resource.
  InputStream is = this.getClass().getClassLoader().getResourceAsStream("vizjs/HtmlTemplate.html");
  String result;
  {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    writer.writeGraph(baos);
    result = baos.toString();
  }
  
  if(LOG.isDebugEnabled())  {
    LOG.debug("DOT: "+result);
  }
  
  
  // read the document.
  Document document;
  try {
    document = $(is).document();
    // append in the gexf.
    $(document).find("#dot-source").append(result);
    writeDocument(document, os);
  } catch (SAXException e) {
    throw new IOException("Exception loading document.", e);
  }
}

代码示例来源:origin: org.jboss.windup.legacy.application/grapher

public void writeGraph(final OutputStream os) throws IOException {
  // read in the html template resource.
  InputStream is = this.getClass().getClassLoader().getResourceAsStream("sigmajs/HtmlTemplate.html");
  String result = null; 
  {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    gexfWriter.writeGraph(baos);
    result = baos.toString();
  }
  
  if(LOG.isDebugEnabled())  {
    LOG.debug("GEXF: "+result);
  }
  
  // read the document.
  Document document;
  try {
    document = $(is).document();
    // append in the gexf.
    $(document).find("#gexf-source").append(result);
    writeDocument(document, os);
  } catch (SAXException e) {
    throw new IOException("Exception loading document.", e);
  }
}

代码示例来源:origin: org.jboss.windup.legacy.application/grapher

public void writeGraph(final OutputStream os) throws IOException {
  // read in the html template resource.
  InputStream is = this.getClass().getClassLoader().getResourceAsStream("vizjs/HtmlTemplate.html");
  String result;
  {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    writer.writeGraph(baos);
    result = baos.toString();
  }
  
  if(LOG.isDebugEnabled())  {
    LOG.debug("DOT: "+result);
  }
  
  
  // read the document.
  Document document;
  try {
    document = $(is).document();
    // append in the gexf.
    $(document).find("#dot-source").append(result);
    writeDocument(document, os);
  } catch (SAXException e) {
    throw new IOException("Exception loading document.", e);
  }
}

代码示例来源:origin: org.jboss.windup.legacy.application/grapher

public void writeGraph(final OutputStream os) throws IOException {
  // read in the html template resource.
  InputStream is = this.getClass().getClassLoader().getResourceAsStream("dagred3/HtmlTemplate.html");
  String result;
  {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    writer.writeGraph(baos);
    result = baos.toString();
  }
  
  if(LOG.isDebugEnabled())  {
    LOG.debug("Graphlib: "+result);
  }
  
  
  // read the document.
  Document document;
  try {
    document = $(is).document();
    // append in the gexf.
    $(document).find("#graphlib-source").append(result);
    writeDocument(document, os);
  } catch (SAXException e) {
    throw new IOException("Exception loading document.", e);
  }
}

代码示例来源:origin: org.jboss.windup/windup-grapher

public void writeGraph(final OutputStream os) throws IOException {
  // read in the html template resource.
  InputStream is = this.getClass().getClassLoader().getResourceAsStream("dagred3/HtmlTemplate.html");
  String result;
  {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    writer.writeGraph(baos);
    result = baos.toString();
  }
  
  if(LOG.isDebugEnabled())  {
    LOG.debug("Graphlib: "+result);
  }
  
  
  // read the document.
  Document document;
  try {
    document = $(is).document();
    // append in the gexf.
    $(document).find("#graphlib-source").append(result);
    writeDocument(document, os);
  } catch (SAXException e) {
    throw new IOException("Exception loading document.", e);
  }
}

代码示例来源:origin: org.jboss.windup/windup-grapher

public void writeGraph(final OutputStream os) throws IOException {
  // read in the html template resource.
  InputStream is = this.getClass().getClassLoader().getResourceAsStream("sigmajs/HtmlTemplate.html");
  String result = null; 
  {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    gexfWriter.writeGraph(baos);
    result = baos.toString();
  }
  
  if(LOG.isDebugEnabled())  {
    LOG.debug("GEXF: "+result);
  }
  
  // read the document.
  Document document;
  try {
    document = $(is).document();
    // append in the gexf.
    $(document).find("#gexf-source").append(result);
    writeDocument(document, os);
  } catch (SAXException e) {
    throw new IOException("Exception loading document.", e);
  }
}

代码示例来源:origin: org.jboss.windup.reporting/windup-reporting-impl

$(document).find("#gexf-source").append(result);

代码示例来源:origin: windup/windup

$(document).find("#gexf-source").append(result);

代码示例来源:origin: org.jboss.windup.reporting/windup-reporting-impl

private void writeGraph(final OutputStream os) throws IOException
{
  // read in the html template resource.
  try (InputStream is = this.getClass().getClassLoader().getResourceAsStream("dagred3/HtmlTemplate.html"))
  {
    String result;
    {
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      writer.writeGraph(baos);
      result = baos.toString();
    }
    if (LOG.isLoggable(Level.FINE))
    {
      LOG.fine("Graphlib: " + result);
    }
    // read the document.
    Document document;
    try
    {
      document = $(is).document();
      // append in the gexf.
      $(document).find("#graphlib-source").append(result);
      writeDocument(document, os);
    }
    catch (SAXException e)
    {
      throw new IOException("Exception loading document.", e);
    }
  }
}

代码示例来源:origin: windup/windup

private void writeGraph(final OutputStream os) throws IOException
{
  // read in the html template resource.
  try (InputStream is = this.getClass().getClassLoader().getResourceAsStream("dagred3/HtmlTemplate.html"))
  {
    String result;
    {
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      writer.writeGraph(baos);
      result = baos.toString();
    }
    if (LOG.isLoggable(Level.FINE))
    {
      LOG.fine("Graphlib: " + result);
    }
    // read the document.
    Document document;
    try
    {
      document = $(is).document();
      // append in the gexf.
      $(document).find("#graphlib-source").append(result);
      writeDocument(document, os);
    }
    catch (SAXException e)
    {
      throw new IOException("Exception loading document.", e);
    }
  }
}

相关文章