Jive Forums API (5.5.20.2-oracle) Developer Javadocs

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

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

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

This filter removes empty tags (with the exception of <p> tags) such as <b></b> or <b>\s+\n+\s+</b> (regular expression)


Field Summary
 
Fields inherited from class com.jivesoftware.sitemesh.html.BasicRule
context
 
Constructor Summary
EmptyNodeRemovalRule(FormatExclusion excludedBlocks)
           
 
Method Summary
 boolean isContainsEmptyTag()
           
 boolean process(com.jivesoftware.sitemesh.html.Tag tag)
           
 void setContainsEmptyTag(boolean containsEmptyTag)
           
 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

EmptyNodeRemovalRule

public EmptyNodeRemovalRule(FormatExclusion excludedBlocks)
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

isContainsEmptyTag

public boolean isContainsEmptyTag()

setContainsEmptyTag

public void setContainsEmptyTag(boolean containsEmptyTag)

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.