public abstract class WikiSyntaxDecorator extends java.lang.Object implements SyntaxDecorator
Base Syntax decorator which translates to JSPWiki syntax. Delegates each kind of XHTML element to its specific decorator.
This class is useful when developing a new wiki syntax decorator - just extend from it and provide the implementations of all
the needed Decorators on the SyntaxDecorator.init(PrintWriter, Deque, Deque, WhitespaceTrimWriter, XHtmlToWikiConfig, XHtmlElementToWikiTranslator) method
| Constructor and Description |
|---|
WikiSyntaxDecorator() |
| Modifier and Type | Method and Description |
|---|---|
void |
a(org.jdom2.Element e,
java.lang.String ref)
Decorates an
a element. |
void |
aFootnote(java.lang.String text,
java.lang.String ref)
Decorates an
a element, pointing to a footnote. |
void |
aUndefined(org.jdom2.Element e)
Decorates an
a element to an undefined page. |
void |
br(org.jdom2.Element base,
org.jdom2.Element e)
Decorates a
br element. |
void |
code(org.jdom2.Element e)
Decorates a
code ot tt element. |
void |
dd(org.jdom2.Element e)
Decorates a
dd element. |
void |
dl(org.jdom2.Element e)
Decorates a
dl element. |
void |
dt(org.jdom2.Element e)
Decorates a
dt element. |
void |
em(org.jdom2.Element e)
Decorates an
em, i or address element. |
void |
form(org.jdom2.Element e)
Decorates a
form element. |
void |
h1(org.jdom2.Element e)
Decorates an
h1 element. |
void |
h2(org.jdom2.Element e)
Decorates an
h2 element. |
void |
h3(org.jdom2.Element e)
Decorates an
h3 element. |
void |
h4(org.jdom2.Element e)
Decorates an
h4 element. |
void |
hr(org.jdom2.Element e)
Decorates an
hr element. |
void |
image(java.lang.String src,
java.util.Map<java.lang.String,java.lang.Object> imageAttrs)
Decorates an image element.
|
void |
img(org.jdom2.Element e)
Decorates an image element.
|
void |
input(org.jdom2.Element e)
Decorates an
input element. |
void |
li(org.jdom2.Element base,
org.jdom2.Element e)
Decorates a
li element. |
void |
ol(org.jdom2.Element e)
Decorates an
ol element. |
void |
option(org.jdom2.Element base,
org.jdom2.Element e)
Decorates an
option element. |
void |
p(org.jdom2.Element e)
Decorates a
p element. |
void |
paragraph(XHtmlElementToWikiTranslator.ElementDecoratorData dto)
Decorates a text paragraph.
|
void |
pre(org.jdom2.Element e)
Decorates a
pre element. |
void |
select(org.jdom2.Element e)
Decorates a
select element. |
void |
strike(org.jdom2.Element e)
Decorates a
strike element. |
void |
strong(org.jdom2.Element e)
Decorates a
strong or b element. |
void |
sub(org.jdom2.Element e)
Decorates a
sub element. |
void |
sup(org.jdom2.Element e)
Decorates an
sup element. |
void |
table(org.jdom2.Element e)
Decorates a
table element. |
void |
tbody(org.jdom2.Element e)
Decorates a
tbody element. |
void |
td(org.jdom2.Element e)
Decorates an
td element. |
void |
text(org.jdom2.Text element)
Decorates a text element.
|
void |
textarea(org.jdom2.Element e)
Decorates a
textarea element. |
void |
th(org.jdom2.Element e)
Decorates a
th element. |
void |
thead(org.jdom2.Element e)
Decorates a
thead element. |
void |
tr(org.jdom2.Element e)
Decorates a
tr element. |
void |
ul(org.jdom2.Element e)
Decorates an
ul element. |
void |
underline(org.jdom2.Element e)
Decorates an
underline element. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitprotected ADecorator a
protected BrDecorator br
protected CodeDecorator code
protected DdDecorator dd
protected DlDecorator dl
protected DtDecorator dt
protected FormDecorator form
protected HrDecorator hr
protected H1Decorator h1
protected H2Decorator h2
protected H3Decorator h3
protected H4Decorator h4
protected ImageDecorator img
protected InputDecorator input
protected LiDecorator li
protected OlDecorator ol
protected OptionDecorator option
protected PDecorator p
protected PlainTextDecorator plainText
protected PlainTextBoldDecorator strong
protected PlainTextCssDecorator css
protected PlainTextCssSpecialDecorator cssStyle
protected PlainTextItalicDecorator em
protected PlainTextMonospaceDecorator pre
protected SelectDecorator select
protected StrikeDecorator strike
protected SubDecorator sub
protected SupDecorator sup
protected TableDecorator table
protected TbodyDecorator tbody
protected TdDecorator td
protected TextAreaDecorator textarea
protected TextElementDecorator textElement
protected ThDecorator th
protected TheadDecorator thead
protected TrDecorator tr
protected UlDecorator ul
protected UnderlineDecorator underline
protected WhitespaceTrimWriter outTrimmer
protected XHtmlElementToWikiTranslator chain
protected XHtmlToWikiConfig config
public WikiSyntaxDecorator()
public void a(org.jdom2.Element e, java.lang.String ref) throws org.jdom2.JDOMException
a element.a in interface SyntaxDecoratore - XHTML element being translated.ref - actual link.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void aFootnote(java.lang.String text, java.lang.String ref)
a element, pointing to a footnote.aFootnote in interface SyntaxDecoratortext - text link of the footnote.ref - link to footnote.public void aUndefined(org.jdom2.Element e) throws org.jdom2.JDOMException
a element to an undefined page.aUndefined in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void br(org.jdom2.Element base, org.jdom2.Element e) throws org.jdom2.JDOMException
br element.br in interface SyntaxDecoratorbase - parent of the XHTML element being translated.e - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void code(org.jdom2.Element e) throws org.jdom2.JDOMException
code ot tt element.code in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void dd(org.jdom2.Element e) throws org.jdom2.JDOMException
dd element.dd in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void dl(org.jdom2.Element e) throws org.jdom2.JDOMException
dl element.dl in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void dt(org.jdom2.Element e) throws org.jdom2.JDOMException
dt element.dt in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void em(org.jdom2.Element e) throws org.jdom2.JDOMException
em, i or address element.em in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void form(org.jdom2.Element e) throws org.jdom2.JDOMException
form element.form in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void hr(org.jdom2.Element e) throws org.jdom2.JDOMException
hr element.hr in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void h1(org.jdom2.Element e) throws org.jdom2.JDOMException
h1 element.h1 in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void h2(org.jdom2.Element e) throws org.jdom2.JDOMException
h2 element.h2 in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void h3(org.jdom2.Element e) throws org.jdom2.JDOMException
h3 element.h3 in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void h4(org.jdom2.Element e) throws org.jdom2.JDOMException
h4 element.h4 in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void image(java.lang.String src, java.util.Map<java.lang.String,java.lang.Object> imageAttrs)
image in interface SyntaxDecoratorsrc - image sourceimageAttrs - image attributespublic void img(org.jdom2.Element e)
img in interface SyntaxDecoratore - XHTML element being translated.public void input(org.jdom2.Element e) throws org.jdom2.JDOMException
input element.input in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void li(org.jdom2.Element base, org.jdom2.Element e) throws org.jdom2.JDOMException
li element.li in interface SyntaxDecoratorbase - parent of the XHTML element being translated.e - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void ol(org.jdom2.Element e) throws org.jdom2.JDOMException
ol element.ol in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void option(org.jdom2.Element base, org.jdom2.Element e) throws org.jdom2.JDOMException
option element.option in interface SyntaxDecoratorbase - parent of the XHTML element being translated.e - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void p(org.jdom2.Element e) throws org.jdom2.JDOMException
p element.p in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void paragraph(XHtmlElementToWikiTranslator.ElementDecoratorData dto) throws org.jdom2.JDOMException
paragraph in interface SyntaxDecoratordto - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void pre(org.jdom2.Element e) throws org.jdom2.JDOMException
pre element.pre in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void strong(org.jdom2.Element e) throws org.jdom2.JDOMException
strong or b element.strong in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void table(org.jdom2.Element e) throws org.jdom2.JDOMException
table element.table in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void tbody(org.jdom2.Element e) throws org.jdom2.JDOMException
tbody element.tbody in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void td(org.jdom2.Element e) throws org.jdom2.JDOMException
td element.td in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void text(org.jdom2.Text element)
text in interface SyntaxDecoratorelement - XHTML element being translated.public void textarea(org.jdom2.Element e) throws org.jdom2.JDOMException
textarea element.textarea in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void th(org.jdom2.Element e) throws org.jdom2.JDOMException
th element.th in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void thead(org.jdom2.Element e) throws org.jdom2.JDOMException
thead element.thead in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void tr(org.jdom2.Element e) throws org.jdom2.JDOMException
tr element.tr in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void select(org.jdom2.Element e) throws org.jdom2.JDOMException
select element.select in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void strike(org.jdom2.Element e) throws org.jdom2.JDOMException
strike element.strike in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void sub(org.jdom2.Element e) throws org.jdom2.JDOMException
sub element.sub in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void sup(org.jdom2.Element e) throws org.jdom2.JDOMException
sup element.sup in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void ul(org.jdom2.Element e) throws org.jdom2.JDOMException
ul element.ul in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.public void underline(org.jdom2.Element e) throws org.jdom2.JDOMException
underline element.underline in interface SyntaxDecoratore - XHTML element being translated.org.jdom2.JDOMException - if an error has ocurred parsing the xhtml chain.Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.