org.htmlparser.Tag.setTagName()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(148)

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

Tag.setTagName介绍

[英]Set the name of this tag. This creates or replaces the first attribute of the tag (the zeroth element of the attribute List).
[中]设置此标记的名称。这将创建或替换标记的第一个属性(属性列表的第零个元素)。

代码示例

代码示例来源:origin: com.bbossgroups.pdp/pdp-cms

/**
 * @see org.htmlparser.Tag#setTagName(java.lang.String)
 */
public void setTagName(String arg0) {
  m_decorated.setTagName(arg0);
}

代码示例来源:origin: org.opencms/opencms-solr

/**
 * @see org.htmlparser.Tag#setTagName(java.lang.String)
 */
public void setTagName(String arg0) {
  m_decorated.setTagName(arg0);
}

代码示例来源:origin: org.opencms/opencms-core

/**
 * @see org.htmlparser.Tag#setTagName(java.lang.String)
 */
public void setTagName(String arg0) {
  m_decorated.setTagName(arg0);
}

代码示例来源:origin: org.fitnesse/fitnesse

private static Tag newTag(Class<? extends Tag> klass) {
 Tag tag = null;
 try {
  tag = klass.newInstance();
  tag.setTagName(tag.getTagName().toLowerCase());
  Tag endTag = klass.newInstance();
  endTag.setTagName("/" + tag.getTagName().toLowerCase());
  endTag.setParent(tag);
  tag.setEndTag(endTag);
 } catch (Exception e) {
  LOG.log(Level.WARNING, "Unable to create tag from class " + klass, e);
 }
 return tag;
}

代码示例来源:origin: com.github.tcnh/fitnesse

private static Tag newTag(Class<? extends Tag> klass) {
 Tag tag = null;
 try {
  tag = klass.newInstance();
  tag.setTagName(tag.getTagName().toLowerCase());
  Tag endTag = klass.newInstance();
  endTag.setTagName("/" + tag.getTagName().toLowerCase());
  endTag.setParent(tag);
  tag.setEndTag(endTag);
 } catch (Exception e) {
  LOG.log(Level.WARNING, "Unable to create tag from class " + klass, e);
 }
 return tag;
}

代码示例来源:origin: org.fitnesse/fitnesse

public Row() {
 rowNode = (TableRow) newTag(TableRow.class);
 rowNode.setChildren(new NodeList());
 Tag endNode = new TableRow();
 endNode.setTagName("/" + rowNode.getTagName().toLowerCase());
 rowNode.setEndTag(endNode);
}

代码示例来源:origin: com.github.tcnh/fitnesse

public Row() {
 rowNode = (TableRow) newTag(TableRow.class);
 rowNode.setChildren(new NodeList());
 Tag endNode = new TableRow();
 endNode.setTagName("/" + rowNode.getTagName().toLowerCase());
 rowNode.setEndTag(endNode);
}

代码示例来源:origin: org.opencms/org.opencms.workplace.tools.content

replacementName = "/" + replacementName;
tag.setTagName(replacementName);
result = true;

相关文章