Sharkysoft home

lava.text.html
Class HtmlRegularTag

java.lang.Object
  |
  +--lava.text.html.HtmlComponent
        |
        +--lava.text.html.HtmlRegularTag
Direct Known Subclasses:
HtmlCloseTag, HtmlOpenTag

public abstract class HtmlRegularTag
extends HtmlComponent

HTML tag.

Details: This is the base class for regular HTML tags that occur in the body of well formed HTML source.


Method Summary
 java.lang.String getType()
          Returns tag type.
 
Methods inherited from class lava.text.html.HtmlComponent
getOriginalSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getType

public java.lang.String getType()
Returns tag type.

Details: getType returns the primary type of this tag. To facilitate easy tag identification, the type is represented in upper case characters, regardless of how it appeared in the original HTML stream.

For example, if the original HTML source represented by this instance is

<a href="http://sharkysoft.com/" target=_top>

then getType will return the string "A".

Returns:
the type

Sharkysoft home