Jive Forums API (5.5.20.2-oracle) Developer Javadocs

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

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

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

This class will rewrite html style tags such as leading and trailing spaces are moved outside of the tag body. This is done to facilitate proper generation of wiki markup.


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

Constructor Detail

RewriteStyleTagsRule

public RewriteStyleTagsRule(FormatExclusion exclusion)
Method Detail

shouldProcess

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

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 string,
                               int i,
                               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.