info.bliki.htmlcleaner
Class EndTagToken

java.lang.Object
  extended by info.bliki.htmlcleaner.TagToken
      extended by info.bliki.htmlcleaner.EndTagToken
All Implemented Interfaces:
BaseToken, java.lang.Cloneable
Direct Known Subclasses:
HTMLEndTag

public class EndTagToken
extends TagToken

HTML tag end token.

Created by: Vladimir Nikic
Date: November, 2006.


Field Summary
 
Fields inherited from class info.bliki.htmlcleaner.TagToken
name, originalSource
 
Constructor Summary
EndTagToken()
           
EndTagToken(java.lang.String name)
           
 
Method Summary
 boolean addAttribute(java.lang.String attName, java.lang.String attValue, boolean checkXSS)
          Add an attribute to this tag.
 java.lang.Object clone()
           
 java.lang.String getParents()
          Get the allowed parent tags for this tag
 boolean isAllowedAttribute(java.lang.String attName)
          Check, if the attName is allowed.
 void serialize(XmlSerializer xmlSerializer)
           
 
Methods inherited from class info.bliki.htmlcleaner.TagToken
equals, getName, getOriginalSource, hashCode, isReduceTokenStack, setName, setOriginalSource, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EndTagToken

public EndTagToken()

EndTagToken

public EndTagToken(java.lang.String name)
Method Detail

addAttribute

public boolean addAttribute(java.lang.String attName,
                            java.lang.String attValue,
                            boolean checkXSS)
Description copied from class: TagToken
Add an attribute to this tag.

Specified by:
addAttribute in class TagToken
Parameters:
attName - the attribute name
attValue - the attribute's value string
checkXSS - check the attributes for allowed names to avoid cross side scripting
Returns:

isAllowedAttribute

public boolean isAllowedAttribute(java.lang.String attName)
Description copied from class: TagToken
Check, if the attName is allowed.

Specified by:
isAllowedAttribute in class TagToken
Returns:

serialize

public void serialize(XmlSerializer xmlSerializer)

clone

public java.lang.Object clone()
Overrides:
clone in class TagToken

getParents

public java.lang.String getParents()
Description copied from class: TagToken
Get the allowed parent tags for this tag

Specified by:
getParents in class TagToken
Returns:
null if no parent tags are allowed


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.