Class ObjectTag

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Node, Tag

    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
    • Constructor Detail

      • ObjectTag

        public ObjectTag()
        Create a new object tag.
    • Method Detail

      • getIds

        public java.lang.String[] getIds()
        Return the set of names handled by this tag.
        Specified by:
        getIds in interface Tag
        Overrides:
        getIds in class TagNode
        Returns:
        The names to be matched that create tags of this type.
      • getEndTagEnders

        public java.lang.String[] getEndTagEnders()
        Return the set of end tag names that cause this tag to finish.
        Specified by:
        getEndTagEnders in interface Tag
        Overrides:
        getEndTagEnders in class TagNode
        Returns:
        The names of following end tags that stop further scanning.
      • createObjectParamsTable

        public java.util.Hashtable createObjectParamsTable()
        Extract the object PARAM tags 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 CLASSID attribute.
      • getObjectCodeBase

        public java.lang.String getObjectCodeBase()
        Get the codebase of the object.
        Returns:
        The value of the CODEBASE attribute.
      • getObjectCodeType

        public java.lang.String getObjectCodeType()
        Get the codetype of the object.
        Returns:
        The value of the CODETYPE attribute.
      • getObjectData

        public java.lang.String getObjectData()
        Get the data of the object.
        Returns:
        The value of the DATA attribute.
      • getObjectHeight

        public java.lang.String getObjectHeight()
        Get the height of the object.
        Returns:
        The value of the HEIGHT attribute.
      • getObjectStandby

        public java.lang.String getObjectStandby()
        Get the standby of the object.
        Returns:
        The value of the STANDBY attribute.
      • getObjectType

        public java.lang.String getObjectType()
        Get the type of the object.
        Returns:
        The value of the TYPE attribute.
      • getObjectWidth

        public java.lang.String getObjectWidth()
        Get the width of the object.
        Returns:
        The value of the WIDTH attribute.
      • 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 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 java.util.Enumeration getParameterNames()
        Get an enumeration over the (String) parameter names.
        Returns:
        An enumeration of the PARAM tag NAME attributes.
      • setObjectClassId

        public void setObjectClassId​(java.lang.String newClassId)
        Set the CLASSID attribute.
        Parameters:
        newClassId - The new classid.
      • setObjectCodeBase

        public void setObjectCodeBase​(java.lang.String newCodeBase)
        Set the CODEBASE attribute.
        Parameters:
        newCodeBase - The new codebase.
      • setObjectCodeType

        public void setObjectCodeType​(java.lang.String newCodeType)
        Set the CODETYPE attribute.
        Parameters:
        newCodeType - The new codetype.
      • setObjectData

        public void setObjectData​(java.lang.String newData)
        Set the DATA attribute.
        Parameters:
        newData - The new data.
      • setObjectHeight

        public void setObjectHeight​(java.lang.String newHeight)
        Set the HEIGHT attribute.
        Parameters:
        newHeight - The new height.
      • setObjectStandby

        public void setObjectStandby​(java.lang.String newStandby)
        Set the STANDBY attribute.
        Parameters:
        newStandby - The new standby.
      • setObjectType

        public void setObjectType​(java.lang.String newType)
        Set the TYPE attribute.
        Parameters:
        newType - The new type.
      • setObjectWidth

        public void setObjectWidth​(java.lang.String newWidth)
        Set the WIDTH attribute.
        Parameters:
        newWidth - The new width.
      • setObjectParams

        public void setObjectParams​(java.util.Hashtable newObjectParams)
        Set the enclosed PARAM children.
        Parameters:
        newObjectParams - The new parameters.
      • toString

        public java.lang.String toString()
        Output a string representing this object tag.
        Specified by:
        toString in interface Node
        Overrides:
        toString in class CompositeTag
        Returns:
        A string showing the contents of the object tag.