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

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

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

Tag.getIds介绍

[英]Return the set of names handled by this tag. Since this a a generic tag, it has no ids.
[中]返回此标记处理的名称集。因为这是一个通用标记,所以没有ID。

代码示例

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

/**
 * @see org.htmlparser.Tag#getIds()
 */
public String[] getIds() {
  return m_decorated.getIds();
}

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

/**
 * @see org.htmlparser.Tag#getIds()
 */
public String[] getIds() {
  return m_decorated.getIds();
}

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

/**
 * @see org.htmlparser.Tag#getIds()
 */
public String[] getIds() {
  return m_decorated.getIds();
}

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

/**
 * Register a tag.
 * Registers the given tag under every {@link Tag#getIds() id} that the
 * tag has (i.e. all names returned by {@link Tag#getIds() tag.getIds()}.
 * <p><strong>For proper operation, the ids are converted to uppercase so
 * they will be matched by a Map lookup.</strong>
 * @param tag The tag to register.
 */
public void registerTag (Tag tag)
{
  String[] ids;
  ids = tag.getIds ();
  for (int i = 0; i < ids.length; i++)
    put (ids[i].toUpperCase (Locale.ENGLISH), tag);
}

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

/**
 * Unregister a tag.
 * Unregisters the given tag from every {@link Tag#getIds() id} the tag has.
 * <p><strong>The ids are converted to uppercase to undo the operation
 * of registerTag.</strong>
 * @param tag The tag to unregister.
 */
public void unregisterTag (Tag tag)
{
  String[] ids;
  ids = tag.getIds ();
  for (int i = 0; i < ids.length; i++)
    remove (ids[i].toUpperCase (Locale.ENGLISH));
}

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

/**
 * Unregister a tag.
 * Unregisters the given tag from every {@link Tag#getIds() id} the tag has.
 * <p><strong>The ids are converted to uppercase to undo the operation
 * of registerTag.</strong>
 * @param tag The tag to unregister.
 */
public void unregisterTag (Tag tag)
{
  String[] ids;
  ids = tag.getIds ();
  for (int i = 0; i < ids.length; i++)
    remove (ids[i].toUpperCase (Locale.ENGLISH));
}

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

/**
 * Register a tag.
 * Registers the given tag under every {@link Tag#getIds() id} that the
 * tag has (i.e. all names returned by {@link Tag#getIds() tag.getIds()}.
 * <p><strong>For proper operation, the ids are converted to uppercase so
 * they will be matched by a Map lookup.</strong>
 * @param tag The tag to register.
 */
public void registerTag (Tag tag)
{
  String[] ids;
  ids = tag.getIds ();
  for (int i = 0; i < ids.length; i++)
    put (ids[i].toUpperCase (Locale.ENGLISH), tag);
}

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

if (null != node)
  if (!(node instanceof Tag) || !(   ((Tag)node).isEndTag ()
    && ((Tag)node).getTagName ().equals (tag.getIds ()[0])))

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

if (null != node)
  if (!(node instanceof Tag) || !(   ((Tag)node).isEndTag ()
    && ((Tag)node).getTagName ().equals (tag.getIds ()[0])))

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

if (null != node)
  if (!(node instanceof Tag) || !(   ((Tag)node).isEndTag ()
    && ((Tag)node).getTagName ().equals (tag.getIds ()[0])))

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

if (null != node)
  if (!(node instanceof Tag) || !(   ((Tag)node).isEndTag ()
    && ((Tag)node).getTagName ().equals (tag.getIds ()[0])))

相关文章