Class FormDecorator
- java.lang.Object
-
- org.apache.wiki.htmltowiki.syntax.FormDecorator
-
public abstract class FormDecorator extends java.lang.Object
Translates to wiki syntax from aFORM
element.
-
-
Field Summary
Fields Modifier and Type Field Description protected XHtmlElementToWikiTranslator
chain
protected java.io.PrintWriter
out
-
Constructor Summary
Constructors Modifier Constructor Description protected
FormDecorator(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
markupFormClose()
Closing wiki markup for aForm
element.protected abstract java.lang.String
markupFormOpen(java.lang.String name)
Opening wiki markup for aForm
element.
-
-
-
Field Detail
-
out
protected final java.io.PrintWriter out
-
chain
protected final XHtmlElementToWikiTranslator chain
-
-
Constructor Detail
-
FormDecorator
protected FormDecorator(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
-
markupFormOpen
protected abstract java.lang.String markupFormOpen(java.lang.String name)
Opening wiki markup for aForm
element.- Parameters:
name
-Form
'sname
attribute - may benull
.- Returns:
- Opening wiki markup for a
Form
element.
-
markupFormClose
protected abstract java.lang.String markupFormClose()
Closing wiki markup for aForm
element.- Returns:
- Closing wiki markup for a
Form
element.
-
-