Class PlainTextMonospaceDecorator
java.lang.Object
org.apache.wiki.htmltowiki.syntax.PlainTextMonospaceDecorator
Translates to wiki syntax from a plain text handling monospace.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final XHtmlElementToWikiTranslator
protected final PrintWriter
protected final PlainTextCssSpecialDecorator
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PlainTextMonospaceDecorator
(PlainTextCssSpecialDecorator ptcsd, PrintWriter out, Deque<String> preStack, XHtmlElementToWikiTranslator chain) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Translates the given XHTML element into wiki markup.void
decorate
(org.jdom2.Element e) Translates the given XHTML element into wiki markup.protected abstract String
Closing wiki markup for a monospace element.protected abstract String
Opening wiki markup for a monospace element.
-
Field Details
-
out
-
preStack
-
chain
-
ptcsd
-
-
Constructor Details
-
PlainTextMonospaceDecorator
protected PlainTextMonospaceDecorator(PlainTextCssSpecialDecorator ptcsd, PrintWriter out, Deque<String> preStack, XHtmlElementToWikiTranslator chain)
-
-
Method Details
-
decorate
public void decorate(XHtmlElementToWikiTranslator.ElementDecoratorData dto) throws org.jdom2.JDOMException Translates the given XHTML element into wiki markup.- Parameters:
dto
- XHTML element being translated.- Throws:
org.jdom2.JDOMException
-
decorate
Translates the given XHTML element into wiki markup.- Parameters:
e
- XHTML element being translated.- Throws:
org.jdom2.JDOMException
-
markupMonospaceOpen
Opening wiki markup for a monospace element.- Returns:
- Opening wiki markup for a monospace element.
-
markupMonospaceClose
Closing wiki markup for a monospace element.- Returns:
- Closing wiki markup for a monospace element.
-