Class PlainTextDecorator
java.lang.Object
org.apache.wiki.htmltowiki.syntax.PlainTextDecorator
Translates to wiki syntax from a plain text. Specifically, this decorator handles the following conversions, when needed:
- Bold elements
- Italic elements
- Monospace elements
- Css classes
- Css styles
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final XHtmlElementToWikiTranslator
protected final PrintWriter
protected final PlainTextCssDecorator
-
Constructor Summary
ConstructorsConstructorDescriptionPlainTextDecorator
(PlainTextCssDecorator ptcd, PrintWriter out, XHtmlElementToWikiTranslator chain) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Translates the given XHTML element into wiki markup.
-
Field Details
-
out
-
chain
-
ptcd
-
-
Constructor Details
-
PlainTextDecorator
public PlainTextDecorator(PlainTextCssDecorator ptcd, PrintWriter out, 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
-