|
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.ObjectTag
public class ObjectTag
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.
Field Summary |
---|
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 | |
---|---|
ObjectTag()
Create a new object tag. |
Method Summary | |
---|---|
Hashtable |
createObjectParamsTable()
Extract the object PARAM tags from the child list. |
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 |
getObjectClassId()
Get the classid of the object. |
String |
getObjectCodeBase()
Get the codebase of the object. |
String |
getObjectCodeType()
Get the codetype of the object. |
String |
getObjectData()
Get the data of the object. |
String |
getObjectHeight()
Get the height of the object. |
Hashtable |
getObjectParams()
Get the object parameters. |
String |
getObjectStandby()
Get the standby of the object. |
String |
getObjectType()
Get the type of the object. |
String |
getObjectWidth()
Get the width of the object. |
String |
getParameter(String key)
Get the PARAM |
Enumeration |
getParameterNames()
Get an enumeration over the (String) parameter names. |
void |
setObjectClassId(String newClassId)
Set the CLASSID |
void |
setObjectCodeBase(String newCodeBase)
Set the CODEBASE |
void |
setObjectCodeType(String newCodeType)
Set the CODETYPE |
void |
setObjectData(String newData)
Set the DATA |
void |
setObjectHeight(String newHeight)
Set the HEIGHT |
void |
setObjectParams(Hashtable newObjectParams)
Set the enclosed PARAM |
void |
setObjectStandby(String newStandby)
Set the STANDBY |
void |
setObjectType(String newType)
Set the TYPE |
void |
setObjectWidth(String newWidth)
Set the WIDTH |
String |
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, 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 |
Constructor Detail |
---|
public ObjectTag()
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 Hashtable createObjectParamsTable()
PARAM
tags from the child list.
public String getObjectClassId()
CLASSID
attribute.public String getObjectCodeBase()
CODEBASE
attribute.public String getObjectCodeType()
CODETYPE
attribute.public String getObjectData()
DATA
attribute.public String getObjectHeight()
HEIGHT
attribute.public String getObjectStandby()
STANDBY
attribute.public String getObjectType()
TYPE
attribute.public String getObjectWidth()
WIDTH
attribute.public Hashtable getObjectParams()
public String getParameter(String key)
PARAM tag with the given name.
- Parameters:
key
- The object parameter name to get.
- Returns:
- The value of the parameter or
null
if there is no parameter of that name.
public Enumeration getParameterNames()
PARAM tag NAME attributes.
public void setObjectClassId(String newClassId)
CLASSID attribute.
- Parameters:
newClassId
- The new classid.
public void setObjectCodeBase(String newCodeBase)
CODEBASE attribute.
- Parameters:
newCodeBase
- The new codebase.
public void setObjectCodeType(String newCodeType)
CODETYPE attribute.
- Parameters:
newCodeType
- The new codetype.
public void setObjectData(String newData)
DATA attribute.
- Parameters:
newData
- The new data.
public void setObjectHeight(String newHeight)
HEIGHT attribute.
- Parameters:
newHeight
- The new height.
public void setObjectStandby(String newStandby)
STANDBY attribute.
- Parameters:
newStandby
- The new standby.
public void setObjectType(String newType)
TYPE attribute.
- Parameters:
newType
- The new type.
public void setObjectWidth(String newWidth)
WIDTH attribute.
- Parameters:
newWidth
- The new width.
public void setObjectParams(Hashtable newObjectParams)
PARAM children.
- Parameters:
newObjectParams
- The new parameters.
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. |