|
HTML Parser Jar Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.htmlparser.nodes.AbstractNode
org.htmlparser.nodes.TagNode
org.htmlparser.tags.BaseHrefTag
public class BaseHrefTag
BaseHrefTag represents an <Base> tag. It extends a basic tag by providing an accessor to the HREF attribute.
| 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 | |
|---|---|
BaseHrefTag()
Create a new base tag. |
|
| Method Summary | |
|---|---|
void |
doSemanticAction()
Perform the meaning of this tag. |
java.lang.String |
getBaseUrl()
Get the value of the HREF attribute, if any. |
java.lang.String[] |
getIds()
Return the set of names handled by this tag. |
void |
setBaseUrl(java.lang.String base)
Set the value of the HREF attribute. |
| Methods inherited from class org.htmlparser.nodes.TagNode |
|---|
accept, breaksFlow, getAttribute, getAttributeEx, getAttributesEx, getEnders, getEndingLineNumber, getEndTag, getEndTagEnders, 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, toTagHtml |
| Methods inherited from class org.htmlparser.nodes.AbstractNode |
|---|
clone, collectInto, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtml |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.htmlparser.Node |
|---|
clone, collectInto, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtml |
| Constructor Detail |
|---|
public BaseHrefTag()
| Method Detail |
|---|
public java.lang.String[] getIds()
getIds in interface TaggetIds in class TagNodepublic java.lang.String getBaseUrl()
HREF attribute, if any.
HREF value, with the leading and trailing whitespace removed, if any.public void setBaseUrl(java.lang.String base)
HREF attribute.
base - The new HREF value.
public void doSemanticAction()
throws ParserException
doSemanticAction in interface NodedoSemanticAction in class AbstractNodeParserException - If setting the base URL fails.
|
© 2006 Derrick Oswald April 1, 2006
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| HTML Parser is an open source library released under Common Public License. |