|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.renderer.wysiwyg.NodeContext
public class NodeContext
The context in which the node is being converted from xhtml to wiki markup.
This class is only used in the WysiwygMacroHelper at the moment and should be eventually
used in DefaultWysiwygConverter instead of passing so many parameters around.
| Nested Class Summary | |
|---|---|
static class |
NodeContext.Builder
Builder to help construct new NodeContexts. |
| Constructor Summary | |
|---|---|
NodeContext(org.w3c.dom.Node node,
org.w3c.dom.Node previousSibling,
Styles styles,
ListContext listContext,
boolean inTable,
boolean inListItem,
boolean ignoreText,
boolean escapeWikiMarkup)
Deprecated. Since 6.0 use NodeContext#Builder to build NodeContexts instead. This constructor does not allow setting the inHeading. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAttribute(java.lang.String name)
Retrieve the attribute value from the node. |
boolean |
getBooleanAttributeValue(java.lang.String attributeName,
boolean defaultValue)
Retrieve the value of an attribute from the node as a boolean. |
NodeContext |
getFirstChildNodeContext()
|
NodeContext |
getFirstChildNodeContextPreservingPreviousSibling()
|
ListContext |
getListContext()
|
org.w3c.dom.Node |
getNode()
|
NodeContext |
getNodeContextForNextChild(NodeContext child)
Get a node context for the child of this context after the given one. |
NodeContext |
getNodeContextForNextChildPreservingPreviousSibling(NodeContext child)
Get a node context for the child after the given one, but keep the previous sibling set in the child context. |
java.lang.String |
getNodeName()
Returns the name of the node in all lower case. |
org.w3c.dom.Node |
getPreviousSibling()
|
Styles |
getStyles()
|
boolean |
hasClass(java.lang.String className)
Check the "class" attribute for a specific class |
boolean |
hasNodeName(java.lang.String nodeName)
Return true if the node name matches the given string. |
java.lang.String |
invokeConvert(WysiwygNodeConverter wysiwygNodeConverter,
WysiwygConverter wysiwygConverter)
|
boolean |
isEscapeWikiMarkup()
|
boolean |
isIgnoreText()
|
boolean |
isInHeading()
|
boolean |
isInListItem()
|
boolean |
isInTable()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeContext(org.w3c.dom.Node node,
org.w3c.dom.Node previousSibling,
Styles styles,
ListContext listContext,
boolean inTable,
boolean inListItem,
boolean ignoreText,
boolean escapeWikiMarkup)
inHeading.
| Method Detail |
|---|
public NodeContext getFirstChildNodeContext()
public NodeContext getFirstChildNodeContextPreservingPreviousSibling()
public NodeContext getNodeContextForNextChild(NodeContext child)
child - a childContext of this object.
public NodeContext getNodeContextForNextChildPreservingPreviousSibling(NodeContext child)
child - a childContext of this object.
public java.lang.String invokeConvert(WysiwygNodeConverter wysiwygNodeConverter,
WysiwygConverter wysiwygConverter)
public boolean hasClass(java.lang.String className)
public org.w3c.dom.Node getNode()
public org.w3c.dom.Node getPreviousSibling()
public Styles getStyles()
public ListContext getListContext()
public boolean isInTable()
public boolean isInListItem()
public boolean isInHeading()
public boolean isIgnoreText()
public boolean isEscapeWikiMarkup()
public boolean getBooleanAttributeValue(java.lang.String attributeName,
boolean defaultValue)
attributeName - the attribute to find the value ofdefaultValue - the value to return if no boolean value is found.
public java.lang.String getAttribute(java.lang.String name)
public java.lang.String getNodeName()
public boolean hasNodeName(java.lang.String nodeName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||