|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.renderer.AbstractRenderFilter
public abstract class AbstractRenderFilter
An abstract implementation of the RenderFilter interface this class provides subclasses with built in support for documentation and splits apart the execute method into seperate methods depending on the render target specified in the render context.
| Constructor Summary | |
|---|---|
AbstractRenderFilter()
|
|
| Method Summary | |
|---|---|
protected abstract String[] |
getDefaultHelp()
Returns a String[section,title,body] for the default help for the filter. |
protected abstract Map<String,String[]> |
getDocumentationMap()
Returns a documentation Map keyed by languageCode -> String[section,title,body]. |
abstract String |
getName()
|
int |
getOrder()
Return the order in which to place the filter in the render pipeline. |
Map<String,String> |
getParameters()
|
String[] |
getUserDocumentation(String language)
Returns a string array of [section,title, body] of xml formatted documentation that is targetted for end user usage. |
boolean |
isDisplayable()
The default behavior is to display the filter/macro. |
boolean |
isEnabled()
|
protected abstract boolean |
isEnabledByDefault()
Returns true if the filter should be enabled by default, false otherwise. |
protected boolean |
isModifiable(Node node)
|
void |
setEnabled(boolean enabled)
|
void |
setParameters(Map<String,String> parameters)
|
boolean |
shouldProcess(Element e,
RenderContext context)
Checks to see if the element should be processed by this filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jivesoftware.community.renderer.RenderFilter |
|---|
execute |
| Constructor Detail |
|---|
public AbstractRenderFilter()
| Method Detail |
|---|
public abstract String getName()
getName in interface com.jivesoftware.community.renderer.RenderPluginpublic Map<String,String> getParameters()
getParameters in interface com.jivesoftware.community.renderer.RenderPluginpublic void setParameters(Map<String,String> parameters)
setParameters in interface com.jivesoftware.community.renderer.RenderPluginpublic boolean isEnabled()
isEnabled in interface com.jivesoftware.community.renderer.RenderPluginpublic void setEnabled(boolean enabled)
setEnabled in interface com.jivesoftware.community.renderer.RenderPluginpublic boolean isDisplayable()
isDisplayable in interface RenderFilterprotected abstract boolean isEnabledByDefault()
public String[] getUserDocumentation(String language)
RenderFilter
getUserDocumentation in interface RenderFilterlanguage - the language as an ISO-639 language code to return the documentation in.
protected abstract Map<String,String[]> getDocumentationMap()
protected abstract String[] getDefaultHelp()
public int getOrder()
RenderFilter
getOrder in interface RenderFiltergetOrder in interface com.jivesoftware.community.renderer.RenderPlugin
public boolean shouldProcess(Element e,
RenderContext context)
e - elementcontext - RenderContext
protected boolean isModifiable(Node node)
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||