Package org.htmlparser.tags
Class ObjectTag
java.lang.Object
org.htmlparser.nodes.AbstractNode
org.htmlparser.nodes.TagNode
org.htmlparser.tags.CompositeTag
org.htmlparser.tags.ObjectTag
- All Implemented Interfaces:
Serializable,Cloneable,Node,Tag
ObjectTag represents an <Object> tag.
It extends a basic tag by providing accessors to the
type, codetype, codebase, classid, data, height, width, standby attributes and parameters.
- See Also:
-
Field Summary
Fields inherited from class org.htmlparser.tags.CompositeTag
mDefaultCompositeScanner, mEndTagFields inherited from class org.htmlparser.nodes.TagNode
breakTags, mAttributes, mDefaultScanner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExtract the objectPARAMtags from the child list.String[]Return the set of end tag names that cause this tag to finish.String[]getIds()Return the set of names handled by this tag.Get the classid of the object.Get the codebase of the object.Get the codetype of the object.Get the data of the object.Get the height of the object.Get the object parameters.Get the standby of the object.Get the type of the object.Get the width of the object.getParameter(String key) Get thePARAMtag with the given name.Get an enumeration over the (String) parameter names.voidsetObjectClassId(String newClassId) Set theCLASSIDattribute.voidsetObjectCodeBase(String newCodeBase) Set theCODEBASEattribute.voidsetObjectCodeType(String newCodeType) Set theCODETYPEattribute.voidsetObjectData(String newData) Set theDATAattribute.voidsetObjectHeight(String newHeight) Set theHEIGHTattribute.voidsetObjectParams(Hashtable newObjectParams) Set the enclosedPARAMchildren.voidsetObjectStandby(String newStandby) Set theSTANDBYattribute.voidsetObjectType(String newType) Set theTYPEattribute.voidsetObjectWidth(String newWidth) Set theWIDTHattribute.toString()Output a string representing this object tag.Methods inherited from class org.htmlparser.tags.CompositeTag
accept, childAt, children, collectInto, digupStringNode, elements, findPositionOf, findPositionOf, findPositionOf, getChild, getChildCount, getChildrenAsNodeArray, getChildrenHTML, getEndTag, getStringText, getText, putChildrenInto, putEndTagInto, removeChild, searchByName, searchFor, searchFor, searchFor, searchFor, setEndTag, toHtml, toPlainTextString, toStringMethods 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, setThisScannerMethods inherited from class org.htmlparser.nodes.AbstractNode
clone, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtmlMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.htmlparser.Node
clone, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtml
-
Constructor Details
-
ObjectTag
public ObjectTag()Create a new object tag.
-
-
Method Details
-
getIds
Return the set of names handled by this tag. -
getEndTagEnders
Return the set of end tag names that cause this tag to finish.- Specified by:
getEndTagEndersin interfaceTag- Overrides:
getEndTagEndersin classTagNode- Returns:
- The names of following end tags that stop further scanning.
-
createObjectParamsTable
Extract the objectPARAMtags from the child list.- Returns:
- The list of object parameters (keys and values are String objects).
-
getObjectClassId
Get the classid of the object.- Returns:
- The value of the
CLASSIDattribute.
-
getObjectCodeBase
Get the codebase of the object.- Returns:
- The value of the
CODEBASEattribute.
-
getObjectCodeType
Get the codetype of the object.- Returns:
- The value of the
CODETYPEattribute.
-
getObjectData
Get the data of the object.- Returns:
- The value of the
DATAattribute.
-
getObjectHeight
Get the height of the object.- Returns:
- The value of the
HEIGHTattribute.
-
getObjectStandby
Get the standby of the object.- Returns:
- The value of the
STANDBYattribute.
-
getObjectType
Get the type of the object.- Returns:
- The value of the
TYPEattribute.
-
getObjectWidth
Get the width of the object.- Returns:
- The value of the
WIDTHattribute.
-
getObjectParams
Get the object parameters.- Returns:
- The list of parameter values (keys and values are String objects).
-
getParameter
Get thePARAMtag with the given name.- Parameters:
key- The object parameter name to get.- Returns:
- The value of the parameter or
nullif there is no parameter of that name.
-
getParameterNames
Get an enumeration over the (String) parameter names.- Returns:
- An enumeration of the
PARAMtagNAMEattributes.
-
setObjectClassId
Set theCLASSIDattribute.- Parameters:
newClassId- The new classid.
-
setObjectCodeBase
Set theCODEBASEattribute.- Parameters:
newCodeBase- The new codebase.
-
setObjectCodeType
Set theCODETYPEattribute.- Parameters:
newCodeType- The new codetype.
-
setObjectData
Set theDATAattribute.- Parameters:
newData- The new data.
-
setObjectHeight
Set theHEIGHTattribute.- Parameters:
newHeight- The new height.
-
setObjectStandby
Set theSTANDBYattribute.- Parameters:
newStandby- The new standby.
-
setObjectType
Set theTYPEattribute.- Parameters:
newType- The new type.
-
setObjectWidth
Set theWIDTHattribute.- Parameters:
newWidth- The new width.
-
setObjectParams
Set the enclosedPARAMchildren.- Parameters:
newObjectParams- The new parameters.
-
toString
Output a string representing this object tag.- Specified by:
toStringin interfaceNode- Overrides:
toStringin classCompositeTag- Returns:
- A string showing the contents of the object tag.
-