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.
createObjectParamsTable
public Hashtable createObjectParamsTable()
Extract the object PARAM
tags from the child list.
- 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.
- getEndTagEnders in interface Tag
- getEndTagEnders in interface TagNode
- The names of following end tags that stop further scanning.
getIds
public String[] getIds()
Return the set of names handled by this tag.
- getIds in interface Tag
- getIds in interface TagNode
- The names to be matched that create tags of this type.
getObjectClassId
public String getObjectClassId()
Get the classid of the object.
- The value of the
CLASSID
attribute.
getObjectCodeBase
public String getObjectCodeBase()
Get the codebase of the object.
- The value of the
CODEBASE
attribute.
getObjectCodeType
public String getObjectCodeType()
Get the codetype of the object.
- The value of the
CODETYPE
attribute.
getObjectData
public String getObjectData()
Get the data of the object.
- The value of the
DATA
attribute.
getObjectHeight
public String getObjectHeight()
Get the height of the object.
- The value of the
HEIGHT
attribute.
getObjectParams
public Hashtable getObjectParams()
Get the object parameters.
- The list of parameter values (keys and values are String objects).
getObjectStandby
public String getObjectStandby()
Get the standby of the object.
- The value of the
STANDBY
attribute.
getObjectType
public String getObjectType()
Get the type of the object.
- The value of the
TYPE
attribute.
getObjectWidth
public String getObjectWidth()
Get the width of the object.
- The value of the
WIDTH
attribute.
getParameter
public String getParameter(String key)
Get the PARAM
tag with the given name.
key
- The object parameter name to get.
- 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.
- An enumeration of the
PARAM
tag
NAME
attributes.
setObjectClassId
public void setObjectClassId(String newClassId)
Set the CLASSID
attribute.
newClassId
- The new classid.
setObjectCodeBase
public void setObjectCodeBase(String newCodeBase)
Set the CODEBASE
attribute.
newCodeBase
- The new codebase.
setObjectCodeType
public void setObjectCodeType(String newCodeType)
Set the CODETYPE
attribute.
newCodeType
- The new codetype.
setObjectData
public void setObjectData(String newData)
Set the DATA
attribute.
setObjectHeight
public void setObjectHeight(String newHeight)
Set the HEIGHT
attribute.
newHeight
- The new height.
setObjectParams
public void setObjectParams(Hashtable newObjectParams)
Set the enclosed PARAM
children.
newObjectParams
- The new parameters.
setObjectStandby
public void setObjectStandby(String newStandby)
Set the STANDBY
attribute.
newStandby
- The new standby.
setObjectType
public void setObjectType(String newType)
Set the TYPE
attribute.
setObjectWidth
public void setObjectWidth(String newWidth)
Set the WIDTH
attribute.
newWidth
- The new width.
toString
public String toString()
Output a string representing this object tag.
- toString in interface Node
- toString in interface CompositeTag
- A string showing the contents of the object tag.