org.htmlparser.tags

Class FrameSetTag

public class FrameSetTag extends CompositeTag

Identifies an frame set tag.
Constructor Summary
FrameSetTag()
Create a new frame set tag.
Method Summary
String[]getEndTagEnders()
Return the set of end tag names that cause this tag to finish.
FrameTaggetFrame(String name)
Gets a frame by name.
FrameTaggetFrame(String name, Locale locale)
Gets a frame by name.
NodeListgetFrames()
Returns the frames.
String[]getIds()
Return the set of names handled by this tag.
voidsetFrames(NodeList frames)
Sets the frames (children of this tag).
StringtoString()
Return a string representation of the contents of this FRAMESET tag suitable for debugging.

Constructor Detail

FrameSetTag

public FrameSetTag()
Create a new frame set 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.

getFrame

public FrameTag getFrame(String name)
Gets a frame by name. Names are checked without case sensitivity and conversion to uppercase is performed with an English locale.

Parameters: name The name of the frame to retrieve.

Returns: The specified frame or null if it wasn't found.

getFrame

public FrameTag getFrame(String name, Locale locale)
Gets a frame by name. Names are checked without case sensitivity and conversion to uppercase is performed with the locale provided.

Parameters: name The name of the frame to retrieve. locale The locale to use when converting to uppercase.

Returns: The specified frame or null if it wasn't found.

getFrames

public NodeList getFrames()
Returns the frames.

Returns: The children of this tag.

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.

setFrames

public void setFrames(NodeList frames)
Sets the frames (children of this tag).

Parameters: frames The frames to set

toString

public String toString()
Return a string representation of the contents of this FRAMESET tag suitable for debugging.

Returns: A string with this tag's contents.

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