|
HTML Parser Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.htmlparser.nodes.AbstractNode org.htmlparser.nodes.TagNode org.htmlparser.tags.MetaTag
public class MetaTag
A Meta 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 | |
---|---|
MetaTag()
Create a new meta tag. |
Method Summary | |
---|---|
void |
doSemanticAction()
Perform the META tag semantic action. |
String |
getHttpEquiv()
Get the HTTP-EQUIV attribute, if any. |
String[] |
getIds()
Return the set of names handled by this tag. |
String |
getMetaContent()
Get the CONTENT attribute, if any. |
String |
getMetaTagName()
Get the NAME attribute, if any. |
void |
setHttpEquiv(String httpEquiv)
Set the HTTP-EQUIV attribute. |
void |
setMetaTagContents(String metaTagContents)
Set the CONTENT attribute. |
void |
setMetaTagName(String metaTagName)
Set the NAME 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 |
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 MetaTag()
Method Detail |
---|
public String[] getIds()
getIds
in interface Tag
getIds
in class TagNode
public String getHttpEquiv()
HTTP-EQUIV
attribute, if any.
HTTP-EQUIV
attribute,
or null
if the attribute doesn't exist.public String getMetaContent()
CONTENT
attribute, if any.
CONTENT
attribute,
or null
if the attribute doesn't exist.public String getMetaTagName()
NAME
attribute, if any.
NAME
attribute,
or null
if the attribute doesn't exist.public void setHttpEquiv(String httpEquiv)
HTTP-EQUIV
attribute.
httpEquiv
- The new value of the HTTP-EQUIV
attribute.public void setMetaTagContents(String metaTagContents)
CONTENT
attribute.
metaTagContents
- The new value of the CONTENT
attribute.public void setMetaTagName(String metaTagName)
NAME
attribute.
metaTagName
- The new value of the NAME
attribute.public void doSemanticAction() throws ParserException
doSemanticAction
in interface Node
doSemanticAction
in class AbstractNode
ParserException
- If setting the encoding fails.
|
© 2006 Derrick Oswald Sep 17, 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. |