info.bliki.wiki.tags
Class HTMLTag

java.lang.Object
  extended by info.bliki.htmlcleaner.TagToken
      extended by info.bliki.htmlcleaner.TagNode
          extended by info.bliki.wiki.tags.HTMLTag
All Implemented Interfaces:
BaseToken, java.lang.Cloneable
Direct Known Subclasses:
ATag, ChartTag, HTMLBlockTag, NowikiTag, ReferencesTag, RefTag, SourceTag, TableOfContentTag, WPATag, WPTag

public class HTMLTag
extends TagNode


Field Summary
static boolean NEW_LINES
           
protected static java.util.regex.Pattern XML_QNAME
           
 
Fields inherited from class info.bliki.htmlcleaner.TagNode
ALLOWED_ATTRIBUTES, ALLOWED_ATTRIBUTES_SET
 
Fields inherited from class info.bliki.htmlcleaner.TagToken
name, originalSource
 
Constructor Summary
HTMLTag(java.lang.String name)
           
 
Method Summary
 void appendAttributes(java.lang.Appendable buf, java.util.Map<java.lang.String,java.lang.String> tagAtttributes)
           
static void appendEscapedAttributes(java.lang.Appendable buf, java.util.Map<java.lang.String,java.lang.String> tagAtttributes)
           
static void appendUnescapedAttributes(java.lang.Appendable buf, java.util.Map<java.lang.String,java.lang.String> tagAtttributes)
           
 void renderHTML(ITextConverter converter, java.lang.Appendable buf, IWikiModel model)
           
 void renderHTMLWithoutTag(ITextConverter converter, java.lang.Appendable buf, IWikiModel model)
           
 void setTemplate(boolean isTemplate)
          Set if the text is rendered as a template.
 
Methods inherited from class info.bliki.htmlcleaner.TagNode
addAllowedAttribute, addAttribute, addChild, addChildren, addItemForMoving, addObjectAttribute, clone, getAllowedAttributes, getAttributes, getBodyString, getBodyString, getChildren, getItemsToMove, getObjectAttributes, getParent, getParents, isAllowedAttribute, isFormed, makeCopy, removeAllowedAttribute, serialize, setFormed, setItemsToMove, setParent
 
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
 

Field Detail

NEW_LINES

public static final boolean NEW_LINES
See Also:
Constant Field Values

XML_QNAME

protected static final java.util.regex.Pattern XML_QNAME
Constructor Detail

HTMLTag

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

appendEscapedAttributes

public static void appendEscapedAttributes(java.lang.Appendable buf,
                                           java.util.Map<java.lang.String,java.lang.String> tagAtttributes)
                                    throws java.io.IOException
Throws:
java.io.IOException

appendUnescapedAttributes

public static void appendUnescapedAttributes(java.lang.Appendable buf,
                                             java.util.Map<java.lang.String,java.lang.String> tagAtttributes)
                                      throws java.io.IOException
Throws:
java.io.IOException

appendAttributes

public void appendAttributes(java.lang.Appendable buf,
                             java.util.Map<java.lang.String,java.lang.String> tagAtttributes)
                      throws java.io.IOException
Throws:
java.io.IOException

renderHTML

public void renderHTML(ITextConverter converter,
                       java.lang.Appendable buf,
                       IWikiModel model)
                throws java.io.IOException
Throws:
java.io.IOException

renderHTMLWithoutTag

public void renderHTMLWithoutTag(ITextConverter converter,
                                 java.lang.Appendable buf,
                                 IWikiModel model)
                          throws java.io.IOException
Throws:
java.io.IOException

setTemplate

public void setTemplate(boolean isTemplate)
Set if the text is rendered as a template. This method is a placeholder, it can be overridden in subclasses.

Parameters:
isTemplate - true, if the text is rendered as a template. See WikipediaParser.isTemplate()


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