Jive Forums API (5.5.20.2-oracle) Developer Javadocs

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

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

public class BlockQuoteReplaceRule
extends com.jivesoftware.sitemesh.html.BasicRule
implements com.jivesoftware.sitemesh.html.TextFilter

Very simple rule for replacing all occurrences of blockquote with bq. escaping newlines at the same time


Field Summary
 
Fields inherited from class com.jivesoftware.sitemesh.html.BasicRule
context
 
Constructor Summary
BlockQuoteReplaceRule(FormatExclusion excluded)
           
 
Method Summary
 java.lang.String filter(java.lang.String content, int position, com.jivesoftware.sitemesh.html.HTMLProcessorContext context)
           
 boolean process(com.jivesoftware.sitemesh.html.Tag tag)
           
 
Methods inherited from class com.jivesoftware.sitemesh.html.BasicRule
currentBuffer, setContext, shouldProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockQuoteReplaceRule

public BlockQuoteReplaceRule(FormatExclusion excluded)
Method Detail

process

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

filter

public java.lang.String filter(java.lang.String content,
                               int position,
                               com.jivesoftware.sitemesh.html.HTMLProcessorContext context)
Specified by:
filter in interface com.jivesoftware.sitemesh.html.TextFilter

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.