org.htmlparser.tags

Class FrameTag

public class FrameTag extends TagNode

Identifies a frame tag
Constructor Summary
FrameTag()
Create a new frame tag.
Method Summary
StringgetFrameLocation()
Returns the location of the frame.
StringgetFrameName()
Get the NAME attribute, if any.
String[]getIds()
Return the set of names handled by this tag.
voidsetFrameLocation(String url)
Sets the location of the frame.
StringtoString()
Return a string representation of the contents of this FRAME tag suitable for debugging.

Constructor Detail

FrameTag

public FrameTag()
Create a new frame tag.

Method Detail

getFrameLocation

public String getFrameLocation()
Returns the location of the frame.

Returns: The contents of the SRC attribute converted to an absolute URL.

getFrameName

public String getFrameName()
Get the NAME attribute, if any.

Returns: The value of the NAME attribute, or null if the attribute doesn't exist.

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.

setFrameLocation

public void setFrameLocation(String url)
Sets the location of the frame.

Parameters: url The new frame location.

toString

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

Returns: A string with this tag's contents.

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