Sharkysoft home

Class 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


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="" target=_top>

then getType will return the string "A".

the type

Sharkysoft home