sunlabs.brazil.properties
Class SubstPropsHandler.Resub

java.lang.Object
  extended by sunlabs.brazil.properties.SubstPropsHandler.Resub
All Implemented Interfaces:
SubstPropsHandler.Convert
Enclosing class:
SubstPropsHandler

public static class SubstPropsHandler.Resub
extends Object
implements SubstPropsHandler.Convert

Do a regexp substitution on a value. This takes the following initialization parameters:

match
A Regular expression that matches the string value.
sub
The regular expression substitution to perform. All occurances of "match" are substututed.


Constructor Summary
SubstPropsHandler.Resub()
           
 
Method Summary
 boolean init(String prefix, Properties p)
          This is called once at creation time to provide this class with configuration information.
 String map(String value)
          Map the value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubstPropsHandler.Resub

public SubstPropsHandler.Resub()
Method Detail

init

public boolean init(String prefix,
                    Properties p)
Description copied from interface: SubstPropsHandler.Convert
This is called once at creation time to provide this class with configuration information. Any configuration parameters required in "p" are prefixed with [prefix].

Specified by:
init in interface SubstPropsHandler.Convert

map

public String map(String value)
Description copied from interface: SubstPropsHandler.Convert
Map the value.

Specified by:
map in interface SubstPropsHandler.Convert

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