|
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.CompositeTag org.htmlparser.tags.ScriptTag
public class ScriptTag
A script tag.
Field Summary | |
---|---|
protected String |
mCode
Script code if different from the page contents. |
Fields inherited from class org.htmlparser.tags.CompositeTag |
---|
mDefaultCompositeScanner, mEndTag |
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 | |
---|---|
ScriptTag()
Create a new script tag. |
Method Summary | |
---|---|
String[] |
getEndTagEnders()
Return the set of end tag names that cause this tag to finish. |
String[] |
getIds()
Return the set of names handled by this tag. |
String |
getLanguage()
Get the LANGUAGE attribute, if any. |
String |
getScriptCode()
Get the script code. |
String |
getType()
Get the TYPE attribute, if any. |
protected void |
putChildrenInto(StringBuffer sb,
boolean verbatim)
Places the script contents into the provided buffer. |
void |
setLanguage(String language)
Set the language of the script tag. |
void |
setScriptCode(String code)
Set the code contents. |
void |
setType(String type)
Set the mime type of the script tag. |
String |
toString()
Print the contents of the script tag suitable for debugging display. |
Methods inherited from class org.htmlparser.tags.CompositeTag |
---|
accept, childAt, children, collectInto, digupStringNode, elements, findPositionOf, findPositionOf, findPositionOf, getChild, getChildCount, getChildrenAsNodeArray, getChildrenHTML, getEndTag, getStringText, getText, putEndTagInto, removeChild, searchByName, searchFor, searchFor, searchFor, searchFor, setEndTag, toHtml, toPlainTextString, toString |
Methods inherited from class org.htmlparser.nodes.TagNode |
---|
breaksFlow, getAttribute, getAttributeEx, getAttributesEx, getEnders, getEndingLineNumber, getRawTagName, getStartingLineNumber, getTagBegin, getTagEnd, getTagName, getThisScanner, isEmptyXmlTag, isEndTag, removeAttribute, setAttribute, setAttribute, setAttribute, setAttributeEx, setAttributesEx, setEmptyXmlTag, setTagBegin, setTagEnd, setTagName, setText, setThisScanner |
Methods inherited from class org.htmlparser.nodes.AbstractNode |
---|
clone, doSemanticAction, 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, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtml |
Field Detail |
---|
protected String mCode
Constructor Detail |
---|
public ScriptTag()
Method Detail |
---|
public String[] getIds()
getIds
in interface Tag
getIds
in class TagNode
public String[] getEndTagEnders()
getEndTagEnders
in interface Tag
getEndTagEnders
in class TagNode
public String getLanguage()
LANGUAGE
attribute, if any.
public String getScriptCode()
public void setScriptCode(String code)
code
- The new code contents of this tag.public String getType()
TYPE
attribute, if any.
public void setLanguage(String language)
language
- The new language value.public void setType(String type)
type
- The new mime type.protected void putChildrenInto(StringBuffer sb, boolean verbatim)
putChildrenInto
in class CompositeTag
verbatim
- If true
return as close to the original
page text as possible.sb
- The buffer to add the script to.public String toString()
toString
in interface Node
toString
in class CompositeTag
|
© 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. |