Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.renderer.filter.rules
Class ListReplaceRule

java.lang.Object
  extended by com.jivesoftware.forum.renderer.filter.rules.ListReplaceRule
All Implemented Interfaces:
com.jivesoftware.sitemesh.html.TagRule, com.jivesoftware.sitemesh.html.TextFilter

public class ListReplaceRule
extends java.lang.Object
implements com.jivesoftware.sitemesh.html.TagRule, com.jivesoftware.sitemesh.html.TextFilter

This rule converts html lists to wiki list syntax. This class needs to know how to handle nested lists to properly generate the required output.


Constructor Summary
ListReplaceRule()
           
 
Method Summary
 java.lang.String filter(java.lang.String string, int i, com.jivesoftware.sitemesh.html.HTMLProcessorContext htmlProcessorContext)
           
 boolean process(com.jivesoftware.sitemesh.html.Tag tag)
           
 void setContext(com.jivesoftware.sitemesh.html.HTMLProcessorContext htmlProcessorContext)
           
 boolean shouldProcess(java.lang.String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListReplaceRule

public ListReplaceRule()
Method Detail

setContext

public void setContext(com.jivesoftware.sitemesh.html.HTMLProcessorContext htmlProcessorContext)
Specified by:
setContext in interface com.jivesoftware.sitemesh.html.TagRule

shouldProcess

public boolean shouldProcess(java.lang.String string)
Specified by:
shouldProcess in interface com.jivesoftware.sitemesh.html.TagRule

process

public boolean process(com.jivesoftware.sitemesh.html.Tag tag)
Specified by:
process in interface com.jivesoftware.sitemesh.html.TagRule

filter

public java.lang.String filter(java.lang.String string,
                               int i,
                               com.jivesoftware.sitemesh.html.HTMLProcessorContext htmlProcessorContext)
Specified by:
filter in interface com.jivesoftware.sitemesh.html.TextFilter

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.