Package sunlabs.brazil.properties
Class SubstPropsHandler.Resub
java.lang.Object
sunlabs.brazil.properties.SubstPropsHandler.Resub
- All Implemented Interfaces:
SubstPropsHandler.Convert
- Enclosing class:
- SubstPropsHandler
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
Constructors -
Method Summary
-
Constructor Details
-
Resub
public Resub()
-
-
Method Details
-
init
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 interfaceSubstPropsHandler.Convert
-
map
Description copied from interface:SubstPropsHandler.Convert
Map the value.- Specified by:
map
in interfaceSubstPropsHandler.Convert
-