Package org.apache.wiki.htmltowiki
Class XHtmlElementToWikiTranslator
- java.lang.Object
-
- org.apache.wiki.htmltowiki.XHtmlElementToWikiTranslator
-
public class XHtmlElementToWikiTranslator extends java.lang.Object
Converting XHtml to Wiki Markup. This is the class which does all the heavy loading.
-
-
Constructor Summary
Constructors Constructor Description XHtmlElementToWikiTranslator(org.jdom2.Element base)
Create a new translator using the default config.XHtmlElementToWikiTranslator(org.jdom2.Element base, XHtmlToWikiConfig config)
Create a new translator using the specified config.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getWikiString()
Outputs parsed wikitext.
-
-
-
Constructor Detail
-
XHtmlElementToWikiTranslator
public XHtmlElementToWikiTranslator(org.jdom2.Element base) throws org.jdom2.JDOMException
Create a new translator using the default config.- Parameters:
base
- The base element from which to start translating.- Throws:
org.jdom2.JDOMException
- If the DOM tree is faulty.
-
XHtmlElementToWikiTranslator
public XHtmlElementToWikiTranslator(org.jdom2.Element base, XHtmlToWikiConfig config) throws org.jdom2.JDOMException
Create a new translator using the specified config.- Parameters:
base
- The base element from which to start translating.config
- The config to use.- Throws:
org.jdom2.JDOMException
- If the DOM tree is faulty.
-
-
Method Detail
-
getWikiString
public java.lang.String getWikiString()
Outputs parsed wikitext.- Returns:
- parsed wikitext.
-
-