|
Jive API (5.0.0.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RenderFilter
A filter is an object that performs filtering on Strings. For example, a filter might look for newline characters in a string (\n, \r\n) and replace them with <br> or <p> tags.
It is recommended that each filter provide through theBeanInfo interface the following:
getUserDocumentation(String) method. The output of this
method is expected to follow the guidelines outlined in the documentation distributed with the product.
Instantiating classes of this interface are required to have a zero argument constructor.
JiveBeanInfo| Method Summary | |
|---|---|
void |
execute(Document document,
RenderContext renderContext)
Process the xml document that is passed to this method. |
int |
getOrder()
Return the order in which to place the filter in the render pipeline. |
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()
|
| Methods inherited from interface com.jivesoftware.community.renderer.RenderPlugin |
|---|
getName, getParameters, isEnabled, setEnabled, setParameters |
| Method Detail |
|---|
void execute(Document document,
RenderContext renderContext)
document - the element to filterrenderContext - the context the filter is being executed withinString[] getUserDocumentation(String language)
language - the language as an ISO-639 language code to return the documentation in.
boolean isDisplayable()
int getOrder()
getOrder in interface com.jivesoftware.community.renderer.RenderPlugin
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||