|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.collab.wiki.api.dom.AbstractNode
com.day.cq.collab.wiki.api.dom.TagNode
com.day.cq.collab.wiki.api.dom.PluginNode
public abstract class PluginNode
Provides a base class for plugin nodes
| Field Summary | |
|---|---|
protected String |
id
the id of this node |
protected Plugin |
plugin
the plugin this node belongs to |
| Fields inherited from class com.day.cq.collab.wiki.api.dom.TagNode |
|---|
attrs |
| Fields inherited from class com.day.cq.collab.wiki.api.dom.AbstractNode |
|---|
definition, firstChild, lastChild, nextSibling, parent |
| Constructor Summary | |
|---|---|
PluginNode(TagDef tag,
Attributes attrs,
Plugin plugin,
String id)
Creates a new plugin node. |
|
| Method Summary | |
|---|---|
String |
getId()
Returns the id of this node |
Plugin |
getPlugin()
Returns the plugin this node belongs to. |
boolean |
process(WikiContext ctx)
Allows the plugin to modify the DOM before the wiki text is written back to the storage. |
| Methods inherited from class com.day.cq.collab.wiki.api.dom.TagNode |
|---|
addAttribute, dump, getAttributes, writeBeginHtml, writeBeginSource, writeEndHtml, writeEndSource |
| Methods inherited from class com.day.cq.collab.wiki.api.dom.AbstractNode |
|---|
addChild, detach, getComplianceDef, getFirstChild, getLastChild, getNextSibling, getParentNode, getTagDef, hasChildren, isFirstSibling, isLastSibling, writeHtml, writeInnerHtml, writeInnerSource, writeSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Plugin plugin
protected final String id
| Constructor Detail |
|---|
public PluginNode(TagDef tag,
Attributes attrs,
Plugin plugin,
String id)
tag - the tag definitionattrs - the tag attributesplugin - the pluginid - the plugin id| Method Detail |
|---|
public String getId()
public Plugin getPlugin()
public boolean process(WikiContext ctx)
ctx - the context
true if this node made manipiulations to the dom;
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||