Class TagReplaceRule
java.lang.Object
com.opensymphony.module.sitemesh.html.BasicRule
com.opensymphony.module.sitemesh.html.rules.TagReplaceRule
- All Implemented Interfaces:
TagRule
Very simple rule for replacing all occurences of one tag with another.
For example, to convert all <b> tags to <strong>:
html.addRule(new TagReplaceRule("b", "strong"));
- Author:
- Joe Walnes
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTagReplaceRule(String originalTagName, String newTagName) Instantiates a new tag replace rule. -
Method Summary
Methods inherited from class com.opensymphony.module.sitemesh.html.BasicRule
currentBuffer, getCurrentBufferContent, setContext, shouldProcess
-
Constructor Details
-
TagReplaceRule
Instantiates a new tag replace rule.- Parameters:
originalTagName- the original tag namenewTagName- the new tag name
-
-
Method Details
-
process
Description copied from interface:TagRuleProcess.- Parameters:
tag- the tag
-