info.bliki.wiki.tags
Class NowikiTag

java.lang.Object
  extended by info.bliki.htmlcleaner.TagToken
      extended by info.bliki.htmlcleaner.TagNode
          extended by info.bliki.wiki.tags.HTMLTag
              extended by info.bliki.wiki.tags.NowikiTag
All Implemented Interfaces:
BaseToken, IBodyTag, INoBodyParsingTag, java.lang.Cloneable
Direct Known Subclasses:
MathTag

public class NowikiTag
extends HTMLTag
implements INoBodyParsingTag

Wiki tag for escaping the wiki syntax.


Field Summary
 
Fields inherited from class info.bliki.wiki.tags.HTMLTag
NEW_LINES, 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
  NowikiTag()
           
protected NowikiTag(java.lang.String name)
           
 
Method Summary
static void copyMathLTGT(java.lang.String text, java.lang.Appendable writer)
          Copy the text in the resulting buffer and escape special html characters (< > )
static void copyNowikiNewLine(java.lang.String text, java.lang.Appendable writer)
          Copy the text in the resulting buffer and escape special html characters (< > " & ') Additionally every newline will be replaced by <br/>
static void copyPre(java.lang.String text, java.lang.Appendable writer, boolean replaceAmpersand)
          Copy the text in the resulting buffer and escape special html characters (< > " & ')
 boolean isReduceTokenStack()
           
 void renderHTML(ITextConverter converter, java.lang.Appendable buf, IWikiModel model)
           
 
Methods inherited from class info.bliki.wiki.tags.HTMLTag
appendAttributes, appendEscapedAttributes, appendUnescapedAttributes, renderHTMLWithoutTag, setTemplate
 
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, setName, setOriginalSource, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NowikiTag

protected NowikiTag(java.lang.String name)

NowikiTag

public NowikiTag()
Method Detail

copyNowikiNewLine

public static void copyNowikiNewLine(java.lang.String text,
                                     java.lang.Appendable writer)
                              throws java.io.IOException
Copy the text in the resulting buffer and escape special html characters (< > " & ') Additionally every newline will be replaced by <br/>

Throws:
java.io.IOException

copyPre

public static void copyPre(java.lang.String text,
                           java.lang.Appendable writer,
                           boolean replaceAmpersand)
                    throws java.io.IOException
Copy the text in the resulting buffer and escape special html characters (< > " & ')

Parameters:
replaceAmpersand - replace the ampersand character with the HTML number entity
Throws:
java.io.IOException

copyMathLTGT

public static void copyMathLTGT(java.lang.String text,
                                java.lang.Appendable writer)
                         throws java.io.IOException
Copy the text in the resulting buffer and escape special html characters (< > )

Throws:
java.io.IOException

renderHTML

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

isReduceTokenStack

public boolean isReduceTokenStack()
Overrides:
isReduceTokenStack in class TagToken


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