sunlabs.brazil.sunlabs
Class MapHrefTemplate

java.lang.Object
  extended by sunlabs.brazil.template.Template
      extended by sunlabs.brazil.sunlabs.MapHrefTemplate (view source)
All Implemented Interfaces:
TemplateInterface

public class MapHrefTemplate
extends Template

Template for regexp mapping href attributes in <a> tags.

match
A regular expression to match the href value (defaults to entire string)
sub
A regular expression substitution
nocase
If true, ignore case in regexp matching
sub2
Experimental. An String to use as the "onsubmit" value <form> tags. [The existing value of "onsubmit" is available in the variable ${_onsubmit}. Any ${..} constructs in "sub" or "sub2" are interpolated before the substitution is done.


Field Summary
 
Fields inherited from class sunlabs.brazil.template.Template
debug
 
Constructor Summary
MapHrefTemplate()
           
 
Method Summary
 boolean init(RewriteContext hr)
          Called before this template processes any tags.
 void tag_a(RewriteContext hr)
           
 void tag_form(RewriteContext hr)
           
 
Methods inherited from class sunlabs.brazil.template.Template
done
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapHrefTemplate

public MapHrefTemplate()
Method Detail

init

public boolean init(RewriteContext hr)
Description copied from class: Template
Called before this template processes any tags.

Specified by:
init in interface TemplateInterface
Overrides:
init in class Template

tag_a

public void tag_a(RewriteContext hr)

tag_form

public void tag_form(RewriteContext hr)

Version Kenai-svn-r24, Generated 08/18/09
Copyright (c) 2001-2009, Sun Microsystems.