com.ibm.wbi.markuplanguage.html
Class HtmlItem
java.lang.Object
|
+--com.ibm.wbi.markuplanguage.html.HtmlItem
- Direct Known Subclasses:
- HtmlComment, HtmlScript, HtmlTag, HtmlText
- public class HtmlItem
- extends java.lang.Object
Class to represent an individual HTML item, such as a tag, comment, etc.
|
Field Summary |
protected java.lang.String |
string
|
|
Constructor Summary |
HtmlItem()
Creates a new HtmlItem. |
|
Method Summary |
java.lang.String |
getString()
Access the string representation of the HTML item. |
void |
setString(java.lang.String s)
Set the string representation of the HTML item. |
java.lang.String |
toString()
Convert the HTML item into a string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
string
protected java.lang.String string
HtmlItem
public HtmlItem()
- Creates a new HtmlItem. The string property will be set to an empty string.
setString
public void setString(java.lang.String s)
- Set the string representation of the HTML item.
- Parameters:
The - HTML item.
getString
public java.lang.String getString()
- Access the string representation of the HTML item.
- Returns:
- The HTML item as a string.
toString
public java.lang.String toString()
- Convert the HTML item into a string.
- Overrides:
toString in class java.lang.Object
- Parameters:
The - HTML item as a string.