The Encog Project

org.encog.bot.html
Class HTMLTag

java.lang.Object
  extended by org.encog.bot.html.HTMLTag

public class HTMLTag
extends java.lang.Object

HTMLTag: This class holds a single HTML tag. This class subclasses the AttributeList class. This allows the HTMLTag class to hold a collection of attributes, just as an actual HTML tag does.


Constructor Summary
HTMLTag()
           
 
Method Summary
 void clear()
          Clear the HTML tag.
 java.lang.String getAttributeValue(java.lang.String name)
          Get the value of the specified attribute.
 java.lang.String getName()
          Get the tag name.
 boolean isEnding()
           
 void setAttribute(java.lang.String name, java.lang.String value)
          Set a HTML attribute.
 void setEnding(boolean ending)
           
 void setName(java.lang.String s)
          Set the tag name.
 java.lang.String toString()
          Convert this tag back into string form, with the beginning < and ending >.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTMLTag

public HTMLTag()
Method Detail

clear

public void clear()
Clear the HTML tag.


getAttributeValue

public java.lang.String getAttributeValue(java.lang.String name)
Get the value of the specified attribute.

Parameters:
name - The name of an attribute.
Returns:
The value of the specified attribute.

getName

public java.lang.String getName()
Get the tag name.

Returns:
The tag name.

isEnding

public boolean isEnding()
Returns:
the ending

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)
Set a HTML attribute.

Parameters:
name - The name of the attribute.
value - The value of the attribute.

setEnding

public void setEnding(boolean ending)
Parameters:
ending - The ending to set.

setName

public void setName(java.lang.String s)
Set the tag name.

Parameters:
s - The name.

toString

public java.lang.String toString()
Convert this tag back into string form, with the beginning < and ending >.

Overrides:
toString in class java.lang.Object
Returns:
The Attribute object that was found.

The Encog Project