Class LiDecorator
- java.lang.Object
-
- org.apache.wiki.htmltowiki.syntax.LiDecorator
-
public abstract class LiDecorator extends java.lang.Object
Translates to wiki syntax from aLI
element.
-
-
Field Summary
Fields Modifier and Type Field Description protected XHtmlElementToWikiTranslator
chain
protected java.util.Deque<java.lang.String>
liStack
protected java.io.PrintWriter
out
-
Constructor Summary
Constructors Modifier Constructor Description protected
LiDecorator(java.io.PrintWriter out, java.util.Deque<java.lang.String> liStack, XHtmlElementToWikiTranslator chain)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
decorate(org.jdom2.Element base, org.jdom2.Element e)
Translates the given XHTML element into wiki markup.protected abstract java.lang.String
markupLi(java.util.Deque<java.lang.String> liStack)
Wiki markup for aLI
element.
-
-
-
Field Detail
-
out
protected final java.io.PrintWriter out
-
liStack
protected final java.util.Deque<java.lang.String> liStack
-
chain
protected final XHtmlElementToWikiTranslator chain
-
-
Constructor Detail
-
LiDecorator
protected LiDecorator(java.io.PrintWriter out, java.util.Deque<java.lang.String> liStack, XHtmlElementToWikiTranslator chain)
-
-
Method Detail
-
decorate
public void decorate(org.jdom2.Element base, org.jdom2.Element e) throws org.jdom2.JDOMException
Translates the given XHTML element into wiki markup.- Parameters:
base
- the parent of the XHTML element being translated.e
- XHTML element being translated.- Throws:
org.jdom2.JDOMException
-
markupLi
protected abstract java.lang.String markupLi(java.util.Deque<java.lang.String> liStack)
Wiki markup for aLI
element.- Returns:
- Wiki markup for a
LI
element.
-
-