com.atlassian.renderer.wysiwyg
Class DefaultWysiwygConverter
java.lang.Object
com.atlassian.renderer.wysiwyg.DefaultWysiwygConverter
- All Implemented Interfaces:
- WysiwygConverter
public class DefaultWysiwygConverter
- extends java.lang.Object
- implements WysiwygConverter
|
Method Summary |
java.lang.String |
convertChildren(org.w3c.dom.Node node,
Styles styles,
ListContext listContext,
boolean inTable,
boolean inListItem,
boolean ignoreText,
boolean escapeWikiMarkup,
org.w3c.dom.Node previousSibling)
|
java.lang.String |
convertWikiMarkupToXHtml(RenderContext ctx,
java.lang.String wikiMarkup)
|
java.lang.String |
convertXHtmlToWikiMarkup(java.lang.String xhtml)
|
java.lang.String |
getAttribute(org.w3c.dom.Node node,
java.lang.String name)
Deprecated. As of release 4.1, use NodeUtil.getAttribute(org.w3c.dom.Node, String). |
java.lang.String |
getMacroInfoHtml(RenderContext context,
java.lang.String name,
int xOffset,
int yOffset)
Deprecated. This method seems unused in renderer and will probably be removed in a future version. |
static java.lang.String |
getRawChildText(org.w3c.dom.Node node,
boolean stripNewlines)
Return the text content of a node, adding newlines for <br> and <p> tags |
java.lang.String |
getSep(org.w3c.dom.Node previous,
java.lang.String current,
boolean inTable,
boolean inList)
|
void |
setIconManager(IconManager iconManager)
|
void |
setMacroManager(MacroManager macroManager)
|
void |
setWikiStyleRenderer(WikiStyleRenderer renderer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEXT_SEPERATOR
public static final java.lang.String TEXT_SEPERATOR
- See Also:
- Constant Field Values
debug
protected static boolean debug
renderer
protected WikiStyleRenderer renderer
macrosToIgnore
protected java.util.Set<java.lang.String> macrosToIgnore
- This contains a set of macro names which we don't add to the markup, because they are handled in other ways.
VALID_START
public static final java.lang.String VALID_START
- See Also:
- Constant Field Values
VALID_END
public static final java.lang.String VALID_END
- See Also:
- Constant Field Values
DefaultWysiwygConverter
public DefaultWysiwygConverter()
setWikiStyleRenderer
public void setWikiStyleRenderer(WikiStyleRenderer renderer)
setMacroManager
public void setMacroManager(MacroManager macroManager)
getSep
public java.lang.String getSep(org.w3c.dom.Node previous,
java.lang.String current,
boolean inTable,
boolean inList)
- Specified by:
getSep in interface WysiwygConverter
convertChildren
public java.lang.String convertChildren(org.w3c.dom.Node node,
Styles styles,
ListContext listContext,
boolean inTable,
boolean inListItem,
boolean ignoreText,
boolean escapeWikiMarkup,
org.w3c.dom.Node previousSibling)
- Specified by:
convertChildren in interface WysiwygConverter
getRawChildText
public static java.lang.String getRawChildText(org.w3c.dom.Node node,
boolean stripNewlines)
- Return the text content of a node, adding newlines for <br> and <p> tags
- Parameters:
node - stripNewlines - if this is true then strip any newlines from the raw text, but still add newlines for br and p.
- Returns:
setIconManager
public void setIconManager(IconManager iconManager)
getMacroInfoHtml
public java.lang.String getMacroInfoHtml(RenderContext context,
java.lang.String name,
int xOffset,
int yOffset)
- Deprecated. This method seems unused in renderer and will probably be removed in a future version.
- Specified by:
getMacroInfoHtml in interface WysiwygConverter
convertXHtmlToWikiMarkup
public java.lang.String convertXHtmlToWikiMarkup(java.lang.String xhtml)
- Specified by:
convertXHtmlToWikiMarkup in interface WysiwygConverter
convertWikiMarkupToXHtml
public java.lang.String convertWikiMarkupToXHtml(RenderContext ctx,
java.lang.String wikiMarkup)
- Specified by:
convertWikiMarkupToXHtml in interface WysiwygConverter
getAttribute
public java.lang.String getAttribute(org.w3c.dom.Node node,
java.lang.String name)
- Deprecated. As of release 4.1, use
NodeUtil.getAttribute(org.w3c.dom.Node, String).
- Specified by:
getAttribute in interface WysiwygConverter
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.