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

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

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

Tag.getChildren介绍

暂无

代码示例

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

/**
 * @see org.htmlparser.Node#getChildren()
 */
public NodeList getChildren() {
  return m_decorated.getChildren();
}

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

/**
 * @see org.htmlparser.Node#getChildren()
 */
public NodeList getChildren() {
  return m_decorated.getChildren();
}

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

/**
 * @see org.htmlparser.Node#getChildren()
 */
public NodeList getChildren() {
  return m_decorated.getChildren();
}

代码示例来源:origin: com.bbossgroups/bboss-htmlparser

/**
 * Add a child to the given tag.
 * @param parent The parent tag.
 * @param child The child node.
 */
protected void addChild (Tag parent, Node child)
{
  if (null == parent.getChildren ())
    parent.setChildren (new NodeList ());
  child.setParent (parent);
  parent.getChildren ().add (child);
}

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

/**
 * @see org.htmlparser.Tag#accept(org.htmlparser.visitors.NodeVisitor)
 */
public void accept(NodeVisitor visitor) {
  // be invisible but show the children (if they like visits)
  NodeList children = m_decorated.getChildren();
  if (children == null) {
    return;
  }
  SimpleNodeIterator itChildren = children.elements();
  while (itChildren.hasMoreNodes()) {
    itChildren.nextNode().accept(visitor);
  }
}

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

/**
 * @see org.htmlparser.nodes.TagNode#accept(org.htmlparser.visitors.NodeVisitor)
 */
public void accept(NodeVisitor visitor) {
  // be invisible but show the children (if they like visits)
  NodeList children = m_decorated.getChildren();
  if (children == null) {
    return;
  }
  SimpleNodeIterator itChildren = children.elements();
  while (itChildren.hasMoreNodes()) {
    itChildren.nextNode().accept(visitor);
  }
}

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

/**
 * @see org.htmlparser.Tag#accept(org.htmlparser.visitors.NodeVisitor)
 */
public void accept(NodeVisitor visitor) {
  // be invisible but show the children (if they like visits)
  NodeList children = m_decorated.getChildren();
  if (children == null) {
    return;
  }
  SimpleNodeIterator itChildren = children.elements();
  while (itChildren.hasMoreNodes()) {
    itChildren.nextNode().accept(visitor);
  }
}

代码示例来源:origin: com.bbossgroups/bboss-htmlparser

public void visitTag(Tag tag)
{
  if (isTable(tag))
    tables.add(tag);
  else if (isBodyTag(tag))
    nodesInBody = tag.getChildren ();
  else if (isTitleTag(tag))
    title = ((TitleTag)tag).getTitle();
}

代码示例来源:origin: deas/alfresco

if (tag.getChildren() != null)
  processNodes(buf, tag.getChildren().elements(), encode, false);
if (tag.getChildren() != null)
  processNodes(buf, tag.getChildren().elements(), encode, false);
  if (tag.getEndTag() != null)

代码示例来源:origin: org.alfresco.surf/spring-webscripts

if (tag.getChildren() != null)
  processNodes(buf, tag.getChildren().elements(), encode, false);
if (tag.getChildren() != null)
  processNodes(buf, tag.getChildren().elements(), encode, false);

代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts

if (tag.getChildren() != null)
  processNodes(buf, tag.getChildren().elements(), encode, false);
if (tag.getChildren() != null)
  processNodes(buf, tag.getChildren().elements(), encode, false);

代码示例来源:origin: com.bbossgroups/bboss-htmlparser

mParts[2], // raw
  new Attributes (tag, mSupport, mParts));
NodeList children = tag.getChildren ();
if (null != children)
  for (int i = 0; i < children.size (); i++)

相关文章