|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.ibm.wbi.markuplanguage.html.HtmlItem
|
+--com.ibm.wbi.markuplanguage.html.HtmlTag
Specialized class to represent HTML tags, such as <BODY>.
| Field Summary | |
static java.lang.Object |
NULL
indicates a null value for a given attribute |
| Fields inherited from class com.ibm.wbi.markuplanguage.html.HtmlItem |
string |
| Constructor Summary | |
HtmlTag()
Creates a new instance of Htmltag, with an empty tag name. |
|
| Method Summary | |
protected void |
buildString()
Build the String representation of the HTMLItem. |
java.lang.String |
getAttribute(java.lang.String attribute)
Get the value of an attribute by its name. |
java.util.Hashtable |
getAttributes()
Get the attributes of the Html tag. |
java.lang.String |
getId()
Get the tag ID. |
boolean |
hasAttribute(java.lang.String attribute)
Tell whether the tag contains the named attribute. |
static void |
main(java.lang.String[] argv)
|
protected void |
parseTag()
Extract ID and attributes from the tag string. |
java.lang.String |
removeAttribute(java.lang.String attribute)
Remove the attribute with the specified name. |
void |
setAttribute(java.lang.String attribute,
java.lang.String value)
Set an attribute/value pair inside of a TAG HTMLItem. |
void |
setId(java.lang.String id)
Set the tag ID. |
void |
setString(java.lang.String s)
Sets the text of an Html tag. |
java.lang.String |
toString()
Get a string representation of an HTML tag. |
| Methods inherited from class com.ibm.wbi.markuplanguage.html.HtmlItem |
getString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.Object NULL
| Constructor Detail |
public HtmlTag()
| Method Detail |
public void setString(java.lang.String s)
setString in class HtmlItems - String representation of an HTML tag.public java.lang.String toString()
toString in class HtmlItempublic java.lang.String getId()
public void setId(java.lang.String id)
The - tag IDpublic java.util.Hashtable getAttributes()
public java.lang.String getAttribute(java.lang.String attribute)
attribute - Name of the attribute.public boolean hasAttribute(java.lang.String attribute)
public java.lang.String removeAttribute(java.lang.String attribute)
attribute - The name of the attribute to remove
public void setAttribute(java.lang.String attribute,
java.lang.String value)
attibute - Name of the attribute.value - Value of the attribute.protected void buildString()
protected void parseTag()
public static void main(java.lang.String[] argv)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||