com.raritantechnologies.HTML.filter
Class HTMLTagEvent

java.lang.Object
  extended bycom.raritantechnologies.HTML.filter.HTMLEvent
      extended bycom.raritantechnologies.HTML.filter.HTMLTagEvent

public class HTMLTagEvent
extends HTMLEvent

Represents the occurrence of a tag within an HTML stream. Works with a HTMLFilter


Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Field Summary
 
Fields inherited from class com.raritantechnologies.HTML.filter.HTMLEvent
COMMENT, END, ERROR, SIMPLE, START, TEXT
 
Constructor Summary
HTMLTagEvent(int type, javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet mutableAttrSet, int pos)
           
HTMLTagEvent(int type, java.lang.String tagName)
           
 
Method Summary
 void addAttribute(java.lang.Object attrName, java.lang.String attrVal)
           
 void addAttribute(java.lang.String attrName, java.lang.String attrVal)
           
 java.lang.Object getAttribute(java.lang.String attrName)
           
 java.lang.String getHTML()
           
 javax.swing.text.html.HTML.Tag getTag()
           
 int getType()
           
 void removeAttribute(java.lang.String attrName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLTagEvent

public HTMLTagEvent(int type,
                    javax.swing.text.html.HTML.Tag tag,
                    javax.swing.text.MutableAttributeSet mutableAttrSet,
                    int pos)

HTMLTagEvent

public HTMLTagEvent(int type,
                    java.lang.String tagName)
Method Detail

getType

public int getType()
Specified by:
getType in class HTMLEvent

getHTML

public java.lang.String getHTML()
Specified by:
getHTML in class HTMLEvent

getTag

public javax.swing.text.html.HTML.Tag getTag()

addAttribute

public void addAttribute(java.lang.String attrName,
                         java.lang.String attrVal)

addAttribute

public void addAttribute(java.lang.Object attrName,
                         java.lang.String attrVal)

removeAttribute

public void removeAttribute(java.lang.String attrName)

getAttribute

public java.lang.Object getAttribute(java.lang.String attrName)