Class PlainTextItalicDecorator
- java.lang.Object
-
- org.apache.wiki.htmltowiki.syntax.PlainTextItalicDecorator
-
public abstract class PlainTextItalicDecorator extends java.lang.Object
Translates to wiki syntax from a plain text handling italic.
-
-
Field Summary
Fields Modifier and Type Field Description protected XHtmlElementToWikiTranslator
chain
protected java.io.PrintWriter
out
protected PlainTextMonospaceDecorator
ptmd
-
Constructor Summary
Constructors Modifier Constructor Description protected
PlainTextItalicDecorator(PlainTextMonospaceDecorator ptmd, java.io.PrintWriter out, XHtmlElementToWikiTranslator chain)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
decorate(XHtmlElementToWikiTranslator.ElementDecoratorData dto)
Translates the given XHTML element into wiki markup.void
decorate(org.jdom2.Element e)
Translates the given XHTML element into wiki markup.protected abstract java.lang.String
markupItalicClose()
Closing wiki markup for an italic element.protected abstract java.lang.String
markupItalicOpen()
Opening wiki markup for an italic element.
-
-
-
Field Detail
-
out
protected final java.io.PrintWriter out
-
chain
protected final XHtmlElementToWikiTranslator chain
-
ptmd
protected final PlainTextMonospaceDecorator ptmd
-
-
Constructor Detail
-
PlainTextItalicDecorator
protected PlainTextItalicDecorator(PlainTextMonospaceDecorator ptmd, java.io.PrintWriter out, XHtmlElementToWikiTranslator chain)
-
-
Method Detail
-
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
public void decorate(org.jdom2.Element e) throws org.jdom2.JDOMException
Translates the given XHTML element into wiki markup.- Parameters:
e
- XHTML element being translated.- Throws:
org.jdom2.JDOMException
-
markupItalicOpen
protected abstract java.lang.String markupItalicOpen()
Opening wiki markup for an italic element.- Returns:
- Opening wiki markup for an italic element.
-
markupItalicClose
protected abstract java.lang.String markupItalicClose()
Closing wiki markup for an italic element.- Returns:
- Closing wiki markup for an italic element.
-
-