Class PDecorator
- java.lang.Object
-
- org.apache.wiki.htmltowiki.syntax.PDecorator
-
public abstract class PDecorator extends java.lang.Object
Translates to wiki syntax from aP
element.
-
-
Field Summary
Fields Modifier and Type Field Description protected XHtmlElementToWikiTranslator
chain
protected java.io.PrintWriter
out
-
Constructor Summary
Constructors Modifier Constructor Description protected
PDecorator(java.io.PrintWriter out, XHtmlElementToWikiTranslator chain)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
decorate(org.jdom2.Element e)
Translates the given XHTML element into wiki markup.protected abstract java.lang.String
markupPClose()
Closing wiki markup for aP
element.protected abstract java.lang.String
markupPOpen()
Opening wiki markup for aP
element.
-
-
-
Field Detail
-
out
protected final java.io.PrintWriter out
-
chain
protected final XHtmlElementToWikiTranslator chain
-
-
Constructor Detail
-
PDecorator
protected PDecorator(java.io.PrintWriter out, XHtmlElementToWikiTranslator chain)
-
-
Method Detail
-
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
-
markupPOpen
protected abstract java.lang.String markupPOpen()
Opening wiki markup for aP
element.- Returns:
- Opening wiki markup for a
P
element.
-
markupPClose
protected abstract java.lang.String markupPClose()
Closing wiki markup for aP
element.- Returns:
- Closing wiki markup for a
P
element.
-
-