Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.htmlparser.tags
Class ScriptTag  view ScriptTag download ScriptTag.java

java.lang.Object
  extended byorg.htmlparser.Node
      extended byorg.htmlparser.tags.Tag
          extended byorg.htmlparser.tags.CompositeTag
              extended byorg.htmlparser.tags.ScriptTag
All Implemented Interfaces:
java.io.Serializable

public class ScriptTag
extends CompositeTag

A HTMLScriptTag represents a JavaScript node


Field Summary
private  java.lang.String language
           
private  java.lang.String scriptCode
           
private  java.lang.String type
           
 
Fields inherited from class org.htmlparser.tags.CompositeTag
childTags, endTag, startTag
 
Fields inherited from class org.htmlparser.tags.Tag
attributes, breakTags, EMPTYTAG, tagContents, TAGNAME, thisScanner, TYPE
 
Fields inherited from class org.htmlparser.Node
lineSeparator, nodeBegin, nodeEnd, parent
 
Constructor Summary
ScriptTag(org.htmlparser.tags.data.TagData tagData, org.htmlparser.tags.data.CompositeTagData compositeTagData)
          The HTMLScriptTag is constructed by providing the beginning posn, ending posn and the tag contents.
 
Method Summary
 java.lang.String getLanguage()
           
 java.lang.String getScriptCode()
           
 java.lang.String getType()
           
 void setLanguage(java.lang.String newLanguage)
          Set the language of the javascript tag
 void setType(java.lang.String newType)
          Set the type of the javascript node
 java.lang.String toString()
          Print the contents of the javascript node
 
Methods inherited from class org.htmlparser.tags.CompositeTag
accept, childAt, children, collectInto, collectInto, digupStringNode, elements, findPositionOf, findPositionOf, getChild, getChildCount, getChildren, getChildrenAsNodeArray, getChildrenHTML, getEndTag, getStartTag, putChildrenInto, putEndTagInto, putStartTagInto, searchByName, searchFor, searchFor, searchFor, toHtml, toPlainTextString
 
Methods inherited from class org.htmlparser.tags.Tag
append, append, breaksFlow, extractWord, find, getAttribute, getAttributes, getParameter, getParsed, getTagBegin, getTagEnd, getTagEndLine, getTagLine, getTagLines, getTagName, getTagStartLine, getText, getThisScanner, isEmptyXmlTag, redoParseAttributes, scan, setAttribute, setAttributes, setEmptyXmlTag, setTagBegin, setTagEnd, setTagLine, setTagParser, setText, setThisScanner
 
Methods inherited from class org.htmlparser.Node
elementBegin, elementEnd, getLineSeparator, getParent, setLineSeparator, setParent, toHTML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

language

private java.lang.String language

type

private java.lang.String type

scriptCode

private java.lang.String scriptCode
Constructor Detail

ScriptTag

public ScriptTag(org.htmlparser.tags.data.TagData tagData,
                 org.htmlparser.tags.data.CompositeTagData compositeTagData)
The HTMLScriptTag is constructed by providing the beginning posn, ending posn and the tag contents.

Method Detail

getLanguage

public java.lang.String getLanguage()

getScriptCode

public java.lang.String getScriptCode()

getType

public java.lang.String getType()
Overrides:
getType in class Tag

setLanguage

public void setLanguage(java.lang.String newLanguage)
Set the language of the javascript tag


setType

public void setType(java.lang.String newType)
Set the type of the javascript node


toString

public java.lang.String toString()
Print the contents of the javascript node

Overrides:
toString in class Tag