org.htmlparser.tags

Class TitleTag

public class TitleTag extends CompositeTag

A title tag.
Constructor Summary
TitleTag()
Create a new title tag.
Method Summary
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.
String[]getIds()
Return the set of names handled by this tag.
StringgetTitle()
Get the title text.
StringtoString()
Return a string representation of this tag for debugging.

Constructor Detail

TitleTag

public TitleTag()
Create a new title tag.

Method Detail

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.

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.

getTitle

public String getTitle()
Get the title text.

Returns: The title.

toString

public String toString()
Return a string representation of this tag for debugging.

Returns: A string with the text of the title.

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