org.htmlparser.tags

Class TableRow

public class TableRow extends CompositeTag

A table row tag.
Constructor Summary
TableRow()
Create a new table row tag.
Method Summary
intgetColumnCount()
Get the number of columns in this row.
TableColumn[]getColumns()
Get the column tags within this TR (table row) tag.
String[]getEnders()
Return the set of tag names that cause this tag to finish.
String[]getEndTagEnders()
Return the set of end tag names that cause this tag to finish.
intgetHeaderCount()
Get the number of headers in this row.
TableHeader[]getHeaders()
Get the header of this table
String[]getIds()
Return the set of names handled by this tag.
booleanhasHeader()
Checks if this table has a header

Constructor Detail

TableRow

public TableRow()
Create a new table row tag.

Method Detail

getColumnCount

public int getColumnCount()
Get the number of columns in this row.

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

getColumns

public TableColumn[] getColumns()
Get the column tags within this TR (table row) tag.

Returns: The {@.html } tags contained by this tag.

getEnders

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

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

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.

getHeaderCount

public int getHeaderCount()
Get the number of headers in this row.

Returns: The count of header tags in this row.

getHeaders

public TableHeader[] getHeaders()
Get the header of this table

Returns: Table header tags contained in this row.

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.

hasHeader

public boolean hasHeader()
Checks if this table has a header

Returns: true if there is a header tag.

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