Class BrDecorator
- java.lang.Object
-
- org.apache.wiki.htmltowiki.syntax.BrDecorator
-
public abstract class BrDecorator extends java.lang.Object
Translates to wiki syntax from aBR
element.
-
-
Field Summary
Fields Modifier and Type Field Description protected XHtmlElementToWikiTranslator
chain
protected java.io.PrintWriter
out
protected java.util.Deque<java.lang.String>
preStack
-
Constructor Summary
Constructors Modifier Constructor Description protected
BrDecorator(java.io.PrintWriter out, java.util.Deque<java.lang.String> preStack, 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
markupBr()
Wiki markup for aBR
element.
-
-
-
Field Detail
-
out
protected final java.io.PrintWriter out
-
preStack
protected final java.util.Deque<java.lang.String> preStack
-
chain
protected final XHtmlElementToWikiTranslator chain
-
-
Constructor Detail
-
BrDecorator
protected BrDecorator(java.io.PrintWriter out, java.util.Deque<java.lang.String> preStack, 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
- parent of the XHTML element being translated.e
- element being translated.- Throws:
org.jdom2.JDOMException
-
markupBr
protected abstract java.lang.String markupBr()
Wiki markup for aBR
element.- Returns:
- Wiki markup for a
BR
element.
-
-