org.htmlparser.tags

Class TableTag

public class TableTag extends CompositeTag

A table tag.
Constructor Summary
TableTag()
Create a new table tag.
Method Summary
String[]getEndTagEnders()
Return the set of end tag names that cause this tag to finish.
String[]getIds()
Return the set of names handled by this tag.
TableRowgetRow(int index)
Get the row at the given index.
intgetRowCount()
Get the number of rows in this table.
TableRow[]getRows()
Get the row tags within this table.
StringtoString()
Return a string suitable for debugging display.

Constructor Detail

TableTag

public TableTag()
Create a new table tag.

Method Detail

getEndTagEnders

public String[] getEndTagEnders()
Return the set of end tag names that cause this tag to finish.

Returns: The names of following end tags that stop further scanning.

getIds

public String[] getIds()
Return the set of names handled by this tag.

Returns: The names to be matched that create tags of this type.

getRow

public TableRow getRow(int index)
Get the row at the given index.

Parameters: index The row number (zero based) to get.

Returns: The row for the given index.

getRowCount

public int getRowCount()
Get the number of rows in this table.

Returns: The number of rows in this table. Note: this is a a simple count of the number of {@.html } tags and may be incorrect if the {@.html } tags span multiple rows.

getRows

public TableRow[] getRows()
Get the row tags within this table.

Returns: The rows directly contained by this table.

toString

public String toString()
Return a string suitable for debugging display.

Returns: The table as HTML, sorry.

HTML Parser is an open source library released under LGPL. SourceForge.net