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
-
public class ObjectTag extends CompositeTag
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.htmlparser.tags.CompositeTag
mDefaultCompositeScanner, mEndTag
-
Fields inherited from class org.htmlparser.nodes.TagNode
breakTags, mAttributes, mDefaultScanner
-
-
Constructor Summary
Constructors Constructor Description ObjectTag()Create a new object tag.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.HashtablecreateObjectParamsTable()Extract the objectPARAMtags from the child list.java.lang.String[]getEndTagEnders()Return the set of end tag names that cause this tag to finish.java.lang.String[]getIds()Return the set of names handled by this tag.java.lang.StringgetObjectClassId()Get the classid of the object.java.lang.StringgetObjectCodeBase()Get the codebase of the object.java.lang.StringgetObjectCodeType()Get the codetype of the object.java.lang.StringgetObjectData()Get the data of the object.java.lang.StringgetObjectHeight()Get the height of the object.java.util.HashtablegetObjectParams()Get the object parameters.java.lang.StringgetObjectStandby()Get the standby of the object.java.lang.StringgetObjectType()Get the type of the object.java.lang.StringgetObjectWidth()Get the width of the object.java.lang.StringgetParameter(java.lang.String key)Get thePARAMtag with the given name.java.util.EnumerationgetParameterNames()Get an enumeration over the (String) parameter names.voidsetObjectClassId(java.lang.String newClassId)Set theCLASSIDattribute.voidsetObjectCodeBase(java.lang.String newCodeBase)Set theCODEBASEattribute.voidsetObjectCodeType(java.lang.String newCodeType)Set theCODETYPEattribute.voidsetObjectData(java.lang.String newData)Set theDATAattribute.voidsetObjectHeight(java.lang.String newHeight)Set theHEIGHTattribute.voidsetObjectParams(java.util.Hashtable newObjectParams)Set the enclosedPARAMchildren.voidsetObjectStandby(java.lang.String newStandby)Set theSTANDBYattribute.voidsetObjectType(java.lang.String newType)Set theTYPEattribute.voidsetObjectWidth(java.lang.String newWidth)Set theWIDTHattribute.java.lang.StringtoString()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, 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
-
-
-
-
Method Detail
-
getIds
public java.lang.String[] getIds()
Return the set of names handled by this tag.
-
getEndTagEnders
public java.lang.String[] 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
public java.util.Hashtable createObjectParamsTable()
Extract the objectPARAMtags from the child list.- Returns:
- The list of object parameters (keys and values are String objects).
-
getObjectClassId
public java.lang.String getObjectClassId()
Get the classid of the object.- Returns:
- The value of the
CLASSIDattribute.
-
getObjectCodeBase
public java.lang.String getObjectCodeBase()
Get the codebase of the object.- Returns:
- The value of the
CODEBASEattribute.
-
getObjectCodeType
public java.lang.String getObjectCodeType()
Get the codetype of the object.- Returns:
- The value of the
CODETYPEattribute.
-
getObjectData
public java.lang.String getObjectData()
Get the data of the object.- Returns:
- The value of the
DATAattribute.
-
getObjectHeight
public java.lang.String getObjectHeight()
Get the height of the object.- Returns:
- The value of the
HEIGHTattribute.
-
getObjectStandby
public java.lang.String getObjectStandby()
Get the standby of the object.- Returns:
- The value of the
STANDBYattribute.
-
getObjectType
public java.lang.String getObjectType()
Get the type of the object.- Returns:
- The value of the
TYPEattribute.
-
getObjectWidth
public java.lang.String getObjectWidth()
Get the width of the object.- Returns:
- The value of the
WIDTHattribute.
-
getObjectParams
public java.util.Hashtable getObjectParams()
Get the object parameters.- Returns:
- The list of parameter values (keys and values are String objects).
-
getParameter
public java.lang.String getParameter(java.lang.String key)
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
public java.util.Enumeration getParameterNames()
Get an enumeration over the (String) parameter names.- Returns:
- An enumeration of the
PARAMtagNAMEattributes.
-
setObjectClassId
public void setObjectClassId(java.lang.String newClassId)
Set theCLASSIDattribute.- Parameters:
newClassId- The new classid.
-
setObjectCodeBase
public void setObjectCodeBase(java.lang.String newCodeBase)
Set theCODEBASEattribute.- Parameters:
newCodeBase- The new codebase.
-
setObjectCodeType
public void setObjectCodeType(java.lang.String newCodeType)
Set theCODETYPEattribute.- Parameters:
newCodeType- The new codetype.
-
setObjectData
public void setObjectData(java.lang.String newData)
Set theDATAattribute.- Parameters:
newData- The new data.
-
setObjectHeight
public void setObjectHeight(java.lang.String newHeight)
Set theHEIGHTattribute.- Parameters:
newHeight- The new height.
-
setObjectStandby
public void setObjectStandby(java.lang.String newStandby)
Set theSTANDBYattribute.- Parameters:
newStandby- The new standby.
-
setObjectType
public void setObjectType(java.lang.String newType)
Set theTYPEattribute.- Parameters:
newType- The new type.
-
setObjectWidth
public void setObjectWidth(java.lang.String newWidth)
Set theWIDTHattribute.- Parameters:
newWidth- The new width.
-
setObjectParams
public void setObjectParams(java.util.Hashtable newObjectParams)
Set the enclosedPARAMchildren.- Parameters:
newObjectParams- The new parameters.
-
toString
public java.lang.String 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.
-
-