org.htmlparser.tags

Class FrameTag

Implemented Interfaces:
Cloneable, Node, Serializable, Tag

public class FrameTag
extends TagNode

Identifies a frame tag

Field Summary

Fields inherited from class org.htmlparser.nodes.TagNode

breakTags, mAttributes, mDefaultScanner

Fields inherited from class org.htmlparser.nodes.AbstractNode

children, mPage, nodeBegin, nodeEnd, parent

Constructor Summary

FrameTag()
Create a new frame tag.

Method Summary

String
getFrameLocation()
Returns the location of the frame.
String
getFrameName()
Get the NAME attribute, if any.
String[]
getIds()
Return the set of names handled by this tag.
void
setFrameLocation(String url)
Sets the location of the frame.
String
toString()
Return a string representation of the contents of this FRAME tag suitable for debugging.

Methods inherited from class org.htmlparser.nodes.TagNode

accept, breaksFlow, getAttribute, getAttributeEx, getAttributesEx, getEndTag, getEndTagEnders, getEnders, getEndingLineNumber, getIds, getRawTagName, getStartingLineNumber, getTagBegin, getTagEnd, getTagName, getText, getThisScanner, isEmptyXmlTag, isEndTag, removeAttribute, setAttribute, setAttribute, setAttribute, setAttributeEx, setAttributesEx, setEmptyXmlTag, setEndTag, setTagBegin, setTagEnd, setTagName, setText, setThisScanner, toHtml, toPlainTextString, toString

Methods inherited from class org.htmlparser.nodes.AbstractNode

accept, clone, collectInto, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, getText, setChildren, setEndPosition, setPage, setParent, setStartPosition, setText, toHtml, toHtml, toPlainTextString, toString

Constructor Details

FrameTag

public FrameTag()
Create a new frame tag.

Method Details

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.
Specified by:
getIds in interface Tag
Overrides:
getIds in interface TagNode
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.
Specified by:
toString in interface Node
Overrides:
toString in interface TagNode
Returns:
A string with this tag's contents.

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