info.bliki.htmlcleaner
Class EndTagToken
java.lang.Object
info.bliki.htmlcleaner.TagToken
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.
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 java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
EndTagToken
public EndTagToken()
EndTagToken
public EndTagToken(java.lang.String name)
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 nameattValue
- the attribute's value stringcheckXSS
- 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.