sunlabs.brazil.properties
Class SubstPropsHandler.Resub
java.lang.Object
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.
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. |
SubstPropsHandler.Resub
public SubstPropsHandler.Resub()
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