org.htmlparser.tags

Class 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.
Constructor Summary
ObjectTag()
Create a new object tag.
Method Summary
HashtablecreateObjectParamsTable()
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.
StringgetObjectClassId()
Get the classid of the object.
StringgetObjectCodeBase()
Get the codebase of the object.
StringgetObjectCodeType()
Get the codetype of the object.
StringgetObjectData()
Get the data of the object.
StringgetObjectHeight()
Get the height of the object.
HashtablegetObjectParams()
Get the object parameters.
StringgetObjectStandby()
Get the standby of the object.
StringgetObjectType()
Get the type of the object.
StringgetObjectWidth()
Get the width of the object.
StringgetParameter(String key)
Get the PARAM tag with the given name.
EnumerationgetParameterNames()
Get an enumeration over the (String) parameter names.
voidsetObjectClassId(String newClassId)
Set the CLASSID attribute.
voidsetObjectCodeBase(String newCodeBase)
Set the CODEBASE attribute.
voidsetObjectCodeType(String newCodeType)
Set the CODETYPE attribute.
voidsetObjectData(String newData)
Set the DATA attribute.
voidsetObjectHeight(String newHeight)
Set the HEIGHT attribute.
voidsetObjectParams(Hashtable newObjectParams)
Set the enclosed PARAM children.
voidsetObjectStandby(String newStandby)
Set the STANDBY attribute.
voidsetObjectType(String newType)
Set the TYPE attribute.
voidsetObjectWidth(String newWidth)
Set the WIDTH attribute.
StringtoString()
Output a string representing this object tag.

Constructor Detail

ObjectTag

public ObjectTag()
Create a new object tag.

Method Detail

createObjectParamsTable

public Hashtable createObjectParamsTable()
Extract the object PARAM tags from the child list.

Returns: The list of object parameters (keys and values are String objects).

getEndTagEnders

public String[] getEndTagEnders()
Return the set of end tag names that cause this tag to finish.

Returns: The names of following end tags that stop further scanning.

getIds

public String[] getIds()
Return the set of names handled by this tag.

Returns: The names to be matched that create tags of this type.

getObjectClassId

public String getObjectClassId()
Get the classid of the object.

Returns: The value of the CLASSID attribute.

getObjectCodeBase

public String getObjectCodeBase()
Get the codebase of the object.

Returns: The value of the CODEBASE attribute.

getObjectCodeType

public String getObjectCodeType()
Get the codetype of the object.

Returns: The value of the CODETYPE attribute.

getObjectData

public String getObjectData()
Get the data of the object.

Returns: The value of the DATA attribute.

getObjectHeight

public String getObjectHeight()
Get the height of the object.

Returns: The value of the HEIGHT attribute.

getObjectParams

public Hashtable getObjectParams()
Get the object parameters.

Returns: The list of parameter values (keys and values are String objects).

getObjectStandby

public String getObjectStandby()
Get the standby of the object.

Returns: The value of the STANDBY attribute.

getObjectType

public String getObjectType()
Get the type of the object.

Returns: The value of the TYPE attribute.

getObjectWidth

public String getObjectWidth()
Get the width of the object.

Returns: The value of the WIDTH attribute.

getParameter

public String getParameter(String key)
Get the 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.

getParameterNames

public Enumeration getParameterNames()
Get an enumeration over the (String) parameter names.

Returns: An enumeration of the PARAM tag NAME attributes.

setObjectClassId

public void setObjectClassId(String newClassId)
Set the CLASSID attribute.

Parameters: newClassId The new classid.

setObjectCodeBase

public void setObjectCodeBase(String newCodeBase)
Set the CODEBASE attribute.

Parameters: newCodeBase The new codebase.

setObjectCodeType

public void setObjectCodeType(String newCodeType)
Set the CODETYPE attribute.

Parameters: newCodeType The new codetype.

setObjectData

public void setObjectData(String newData)
Set the DATA attribute.

Parameters: newData The new data.

setObjectHeight

public void setObjectHeight(String newHeight)
Set the HEIGHT attribute.

Parameters: newHeight The new height.

setObjectParams

public void setObjectParams(Hashtable newObjectParams)
Set the enclosed PARAM children.

Parameters: newObjectParams The new parameters.

setObjectStandby

public void setObjectStandby(String newStandby)
Set the STANDBY attribute.

Parameters: newStandby The new standby.

setObjectType

public void setObjectType(String newType)
Set the TYPE attribute.

Parameters: newType The new type.

setObjectWidth

public void setObjectWidth(String newWidth)
Set the WIDTH attribute.

Parameters: newWidth The new width.

toString

public String toString()
Output a string representing this object tag.

Returns: A string showing the contents of the object tag.

HTML Parser is an open source library released under LGPL. SourceForge.net