Jive Forums API (5.5.20.2-oracle) Developer Javadocs

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

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

public class TagReplaceRule
extends com.jivesoftware.sitemesh.html.BasicRule

Very simple rule for replacing all occurrences of one tag with a string.

For example, to convert all <b> tags to *:

html.addRule(new TagReplaceRule("b", "*"));


Field Summary
 
Fields inherited from class com.jivesoftware.sitemesh.html.BasicRule
context
 
Constructor Summary
TagReplaceRule(java.lang.String originalTagName, java.lang.String replacementString, FormatExclusion exclusion)
           
 
Method Summary
 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

TagReplaceRule

public TagReplaceRule(java.lang.String originalTagName,
                      java.lang.String replacementString,
                      FormatExclusion exclusion)
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

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.